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

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


    }
  }

  private void buildProfileUi() {
    profileDiv.getElement().setInnerHTML("");
    Container container = new DefaultContainerImpl(profileDiv.getElement());
    HeadingElement profileHeading = container.getDocument().createHElement(3);
    profileDiv.getElement().appendChild(profileHeading);
    profileHeading.setInnerText("Profile");
    ScopeBar bar = new ScopeBar(container, resources);
    // TODO(jaimeyap): This will always return the most recent page we are
    // viewing. This is a bug. We should have ApplicationState know the current
View Full Code Here


     *          level 'severity'.
     */
    private SeverityItem(Tree tree, int severity, int count,
        JSOArray<HintRecord> hintletRecords) {
      super(tree);
      Container severityContainer = new DefaultContainerImpl(getElement());
      // Make the colored Icon with the count of the number of hintlets
      HintletIndicator indicator = new HintletIndicator(severityContainer,
          severity, count, "", getOwningTree().getResources());
      getItemLabelElement().appendChild(indicator.getElement());

View Full Code Here

  private void mergeProfiles(JSOArray<JavaScriptProfile> profiles) {
    JavaScriptProfile profile = new JavaScriptProfile();
    for (int i = 0, length = profiles.size(); i < length; ++i) {
      profile.merge(profiles.get(i));
    }
    Container resultsContainer = new DefaultContainerImpl(resultsDiv);
    ScopeBar bar = new ScopeBar(resultsContainer, resources);

    listenerOwner.removeAllEventListeners();
    JavaScriptProfileRenderer renderer = new JavaScriptProfileRenderer(
        resultsContainer, resources, listenerOwner,
View Full Code Here

    refreshEventTypeSelect(model);
  }

  private void buildFilterPanel(Container parent, SluggishnessModel model) {
    Div row1 = new Div(parent);
    Container row1Container = new DefaultContainerImpl(row1.getElement());
    Document doc = parent.getDocument();

    // Min Duration: ________
    Element minLabel = doc.createSpanElement();
    row1.getElement().appendChild(minLabel);
View Full Code Here

  protected void protectedPaint(Canvas c, double startX, double startY,
      MarkerIcon interactiveComp, double graphHeightCoords, int startXPx) {
    if (!tooltipAdded && interactiveComponent != null) {
      // Add tooltip lazily, as interactiveComponent is created lazily in
      // super.paint().
      Container container = new DefaultContainerImpl(
          interactiveComponent.getElement());
      String tooltipText = ((PageTransitionModel) markerModel).title;

      // A blank tooltip looks really odd. Try to find something to fill in
      // the text with.
View Full Code Here

    scopeBar.getElement().getStyle().setPropertyPx("marginBottom", 5);
  }

  private void constructReportUi(Resources resources) {
    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");
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.