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

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


    Css css = resources.hintletReportDialogCss();
    Container reportPaneContainer = new DefaultContainerImpl(
        reportPane.getElement());

    // Create a container for the summary information.
    Div summaryInfoDiv = new Div(reportPaneContainer);
    summaryInfoDiv.setStyleName(css.reportPaneInner());
    Container summaryInfoContainer = new DefaultContainerImpl(
        summaryInfoDiv.getElement());

    // Create the title for the summary information.
    summaryTitle = summaryInfoDiv.getElement().getOwnerDocument().createDivElement();
    summaryTitle.setClassName(css.reportTitle());
    updateSummaryTitle();
    summaryInfoDiv.getElement().appendChild(summaryTitle);

    // Summary info is a 2 column section. PieChart on the left, and the startup
    // statistics on the right.
    Table summaryLayout = new Table(summaryInfoContainer);
    summaryLayout.setFixedLayout(true);
    TableRowElement row = summaryLayout.insertRow(-1);
    row.setVAlign("top");
    TableCellElement leftCell = row.insertCell(-1);
    Container pieChartContainer = new DefaultContainerImpl(leftCell);

    // Create a piechart with no data initially.
    this.pieChart = new PieChart(pieChartContainer,
        new ArrayList<ColorCodedValue>(), resources);

    // TODO (jaimeyap): Add startup statistics to the right of the pie chart.
    // Things like "time to first paint" or "page load time".

    // Create the inner container to hold to hint report.
    Div hintReportDiv = new Div(reportPaneContainer);
    hintReportDiv.setStyleName(css.reportPaneInner());
    Container hintReportContainer = new DefaultContainerImpl(
        hintReportDiv.getElement());

    // Create the title for the hint report.
    DivElement hintTitle = hintReportDiv.getElement().getOwnerDocument().createDivElement();
    hintTitle.setInnerText("Hints");
    hintTitle.setClassName(css.reportTitle());
    hintReportDiv.getElement().appendChild(hintTitle);

    // Construct the scope bar for selecting different type of hint reports.
    buildHintReportScopeBar(resources, hintReportContainer);

    // Create the hint report.
View Full Code Here


      ClickEvent.addClickListener(this, tip.getElement(), new ClickListener() {

        public void onClick(ClickEvent event) {
          HoveringPopup popup = Monitor.getPopup();
          popup.setContentProvider(createTooltipPoupupContent());
          Div interactiveComponent = PageTransitionMarker.this.interactiveComponent;
          popup.show(interactiveComponent.getAbsoluteLeft(),
              interactiveComponent.getAbsoluteTop());
        }
      });

      interactiveComponent.getElement().appendChild(tip.getElement());
      tooltipAdded = true;
      interactiveComp.setVisible(true);
    }

    // TODO(zundel): alpha?
View Full Code Here

  private final ReportDataCollector dataCollector;

  public ReportDialog(TimeLineModel timelineModel,
      DataDispatcher dataDispatcher, ReportDialog.Resources resources) {
    // Initialize locals.
    this.glassPane = new Div(Root.getContainer());
    this.reportPane = new Div(Root.getContainer());
    closeButton = new Div(Root.getContainer());
    this.timelineModel = timelineModel;
    this.dataCollector = new ReportDataCollector(dataDispatcher);

    // Set style names for the base elements.
    final Css css = resources.hintletReportDialogCss();
View Full Code Here

TOP

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

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.