Package com.google.gwt.topspin.ui.client

Examples of com.google.gwt.topspin.ui.client.DefaultContainerImpl


      int reportType) {
    super(parentContainer);
    this.resources = resources;
    this.reportModel = reportModel;
    this.css = resources.hintletReportCss();
    this.reportContainer = new DefaultContainerImpl(getElement());
    setStyleName(css.reportOuterDiv());
    setType(reportType);
  }
View Full Code Here


    super(container);
    Element elem = getElement();
    this.filter = filter;
    this.css = resources.filteringScrollTableCss();
    this.commonCss = resources.commonCss();
    myContainer = new DefaultContainerImpl(elem);
    filterPanel = new FilterPanel(getContainer());
    tableContents = DocumentExt.get().createDivWithClassName(css.tableContent());
    elem.appendChild(tableContents);
    CssTransitionEvent.addTransitionListener(tableContents, tableContents,
        new CssTransitionListener() {
View Full Code Here

    this.resources = resources;

    // Construct UI.
    final Css css = resources.monitorVisualizationsPanelCss();
    setStyleName(css.visualizationPanel());
    Container container = new DefaultContainerImpl(getElement());

    DivElement timeLineContainerElem = getElement().getOwnerDocument().createDivElement();
    timeLineContainerElem.setClassName(css.timelineContainer());
    getElement().appendChild(timeLineContainerElem);

    // Create a little wrapper div to wrap the main and overview timelines.
    DivElement graphContainerElem = getElement().getOwnerDocument().createDivElement();
    graphContainerElem.setClassName(css.graphContainer());
    // The left header + 1px border.
    graphContainerElem.getStyle().setPropertyPx("left",
        Constants.GRAPH_PIXEL_OFFSET + 1);
    timeLineContainerElem.appendChild(graphContainerElem);
    Container graphContainer = new DefaultContainerImpl(graphContainerElem);

    // Add the scale
    this.scale = new TimeScale(graphContainer, resources);

    // callback to update the details panel when transition changes.
View Full Code Here

    parentElem.appendChild(elem);
    return elem;
  }

  private void createHintletTree() {
    hintletTree = new HintletRecordsTree(new DefaultContainerImpl(
        hintletTreeWrapper), info.getHintRecords(), resources);

    // Hook listener to tree list to monitor expansion changes.
    hintletTree.addExpansionChangeListener(new ExpansionChangeListener() {
      public void onExpansionChange(Item changedItem) {
View Full Code Here

            final LazyEventTree.Resources treeResources = GWT.create(LazyEventTree.Resources.class);
            final ServerEventTreeController controller = new ServerEventTreeController();

            final LazyEventTree tree = new LazyEventTree(
                new DefaultContainerImpl(container), controller, event,
                new EventTraceBreakdown(event, controller, treeResources),
                treeResources);
            tree.addSelectionChangeListener(controller);
            tree.addExpansionChangeListener(controller);
            fixHeightOfParentRow();
View Full Code Here

  private void populateContent() {
    // We may be doing an update. So we blow away the existing content.
    contentElem.setInnerHTML("");
    final Document document = contentElem.getOwnerDocument();

    ContainerImpl container = new DefaultContainerImpl(contentElem);
    final Css css = resources.requestDetailsCss();
    hintletTreeWrapper = DocumentExt.get().createDivWithClassName(
        css.hintletTreeWrapper());
    contentElem.appendChild(hintletTreeWrapper);
    if (info.getHintRecords() != null) {
View Full Code Here

     */
    private void addButtonBarButtons(Visualization<?, ?> viz) {
      listenerOwner.removeAllEventListeners();
      buttonBar.setInnerHTML("");

      Container buttonBarContainer = new DefaultContainerImpl(buttonBar);
      JSOArray<ButtonDescription> buttons = viz.getButtons();
      for (int i = 0, n = buttons.size(); i < n; i++) {
        buttons.get(i).createButton(buttonBarContainer, listenerOwner);
      }
    }
View Full Code Here

  protected final Tree tree;

  protected HintletReportTree(Container container,
      HintletReport.Resources resources, HintletReportModel reportModel) {
    super(DocumentExt.get().createDivElement(), container);
    tree = new Tree(new DefaultContainerImpl(getElement()), resources);
    tree.disableSelection(true);
    this.resources = resources;
    this.reportModel = reportModel;
    String treeClass = tree.getElement().getClassName() + " "
        + resources.hintletReportCss().reportTree();
View Full Code Here

    displayed = new ArrayList<ResourceRow>();
    DocumentExt document = elem.getOwnerDocument().cast();
    Element contentWrapper = document.createDivWithClassName(css.contentWrapper());
    Element contentElement = document.createDivWithClassName(css.content());
    contentWrapper.appendChild(contentElement);
    contentContainer = new DefaultContainerImpl(contentElement);

    // nice border going the height of the element
    Element filler = document.createDivWithClassName(css.heightFiller());
    filler.getStyle().setPropertyPx("width", Constants.GRAPH_PIXEL_OFFSET);
View Full Code Here

    data.add(new ColorCodedValue("B", 20, Color.LIGHTGREEN));
    data.add(new ColorCodedValue("C", 60, Color.INDIAN_RED));

    Div div = new Div(Root.getContainer());
    div.getElement().getStyle().setProperty("textAlign", "center");
    Container container = new DefaultContainerImpl(div.getElement());
     
    PieChart pieChart = new PieChart(container, data, resources);
    pieChart.showLegend();

    // Now lets test making a horizontal list
View Full Code Here

TOP

Related Classes of com.google.gwt.topspin.ui.client.DefaultContainerImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.