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

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


  private class RuleRow extends ReportRow {
    private final HintletReportRowDetails details;

    public RuleRow(List<HintRecord> hintletRecords) {
      super(tree);
      Container rowContainer = new DefaultContainerImpl(getItemLabelElement());
      populateRowSummary(rowContainer, hintletRecords);
      details = new HintletReportRowDetails(this, hintletRecords, reportModel);
    }
View Full Code Here


      columns.add(columnType);

      final HintletReport.Resources resources = getResources();
      final HintletReport.Css css = resources.hintletReportCss();
      TableCellElement cell = headerRowElem.insertCell(index);
      Container cellContainer = new DefaultContainerImpl(cell);
      SortableTableHeader header;
      switch (columnType) {
        case COL_SEVERITY:
          cell.setClassName(css.reportRowDetailSeverityCell());
          header = new SortableTableHeader(cellContainer, "", resources);
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

     */
    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

    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

    if (profileRoot == null) {
      profileDiv.setHtml("Profile is empty.");
      return;
    }
    profileDiv.setHtml("");
    Container container = new DefaultContainerImpl(profileDiv.getElement());
    // show VM states (Garbage Collect, etc)
    StringBuilder result = new StringBuilder();
    result.append("<h3>VM States</h3>");
    result.append("<br/>");
    profile.getVmStateHtml(result);
    result.append("<br/>");
    DivElement vmStatesDiv = container.getDocument().createDivElement();
    vmStatesDiv.setInnerHTML(result.toString());
    profileDiv.getElement().appendChild(vmStatesDiv);

    profileDiv.setHtml(result.toString());
    switch (profileType) {
View Full Code Here

          resizeCallback.onResize();
        }
      }

      private void initItem(JavaScriptProfileNode profileNode) {
        Container container = new DefaultContainerImpl(
            this.getItemLabelElement());
        DivElement topDiv = container.getDocument().createDivElement();
        topDiv.setClassName(css.treeItemTopDiv());
        this.getItemLabelElement().appendChild(topDiv);
        // The bottom div is reserved for the resymbolized link.
        bottomDiv = container.getDocument().createDivElement();
        bottomDiv.setClassName(css.treeItemBottomDiv());
        this.getItemLabelElement().appendChild(bottomDiv);

        final JsSymbol symbol = profileNode.getSymbol();
        SpanElement symbolNameElement = container.getDocument().createSpanElement();
        symbolNameElement.setInnerText(formatSymbolName(symbol));
        topDiv.appendChild(symbolNameElement);
        renderResourceLocation(topDiv, symbol);
        SpanElement timeValue = container.getDocument().createSpanElement();
        topDiv.appendChild(timeValue);
        timeValue.setInnerHTML(" <b>self: " + formatSelfTime(profileNode)
            + "%</b> (" + formatTime(profileNode) + "%)");
      }
View Full Code Here

  private class SeverityRow extends ReportRow {
    private final HintletReportRowDetails details;

    public SeverityRow(int severity, List<HintRecord> hintletRecords) {
      super(tree);
      Container rowContainer = new DefaultContainerImpl(getItemLabelElement());
      populateRowSummary(rowContainer, severity, hintletRecords);
      details = new HintletReportRowDetails(this, hintletRecords, reportModel);
    }
View Full Code Here

     * @param ruleName name of the rule this table holds.
     * @param hintletRecords list of records to display.
     */
    public RuleRow(String ruleName, List<HintRecord> hintletRecords) {
      super(tree);
      Container rowContainer = new DefaultContainerImpl(getItemLabelElement());
      populateRowSummary(rowContainer, ruleName, hintletRecords);
      details = new RuleRowDetails(this, hintletRecords, reportModel);
    }
View Full Code Here

  }

  @Override
  protected Element createElement() {
    Element elem = super.createElement();
    Container myContainer = new DefaultContainerImpl(elem);

    // Now we need to layout the rest of the row details
    Table detailsLayout = new Table(myContainer);
    detailsLayout.setFixedLayout(true);
    detailsLayout.getElement().setClassName(getCss().detailsLayout());

    // We have a 1 row, 2 column layout
    TableRowElement row = detailsLayout.insertRow(-1);

    // Create the first column.
    eventTraceContainerCell = row.insertCell(-1);

    // Add the piechart and detailsTable to the second column
    TableCellElement detailsTableCell = row.insertCell(-1);
    detailsTableCell.getStyle().setPropertyPx("paddingRight",
        getCss().uiPadding());

    // Attach the pie chart.
    detailsTableContainer = new DefaultContainerImpl(detailsTableCell);
    PieChart pieChart = createPieChart(detailsTableContainer);
    int pieChartHeight = pieChart.getElement().getOffsetHeight()
        + getCss().uiPadding();

    this.detailsTable = createDetailsTable(detailsTableContainer,
        pieChartHeight, getParentRow().getEvent());

    // Now we populate the first column.
    Container eventTraceContainer = new DefaultContainerImpl(
        eventTraceContainerCell);
    treeDiv = eventTraceContainer.getDocument().createDivElement();
    eventTraceContainerCell.appendChild(treeDiv);

    hintletTree = createHintletTree(treeDiv);
    createEventTrace(eventTraceContainer, pieChartHeight);
View Full Code Here

TOP

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

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.