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

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


  public NetworkPillBox(Element parentRowElement,
      NetworkResource networkResource, double windowDomainLeft,
      double windowDomainRight, Resources resources,
      ServerEventController serverEventController) {
    super(new DefaultContainerImpl(parentRowElement));
    this.parentRowElement = parentRowElement;
    this.networkResource = networkResource;
    this.resources = resources;
    this.domainLeft = windowDomainLeft;
    this.domainRight = windowDomainRight;
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

    entries.createErrorEntry().setInnerText(text);
    label.setStyleName(css.labelError());
  }

  private Container getContainer() {
    return new DefaultContainerImpl(getElement());
  }
View Full Code Here

      addTitle(elem);
      // Create a container for the hint and log message icons.
      Element iconElem = elem.getOwnerDocument().createDivElement();
      iconElem.setClassName(css.iconContainer());
      elem.appendChild(iconElem);
      iconContainer = new DefaultContainerImpl(iconElem);
      // Add a hintlet indicator icon if there are hints.
      maybeAddHintIndicator(iconContainer);
      // If there is a log message in this event, show the info bubble.
      maybeAddLogIcon(iconElem);
      return elem;
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

    }

    private Container ensureContainer() {
      if (defaultContainer == null) {
        ensureChildList();
        defaultContainer = new DefaultContainerImpl(getElement());
      }
      return defaultContainer;
    }
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.