Examples of addStyleName()


Examples of com.google.gwt.topspin.ui.client.Div.addStyleName()

  private PieChart createPieChart(Container parent) {
    ensureData();
    // We put an extra div in there to center our piechart and to apply
    // the rounded corners and backing layer styles underneath the piechart.
    Div centeringDiv = new Div(parent);
    centeringDiv.addStyleName(getCss().pieChartContainer());
    PieChart chart = new PieChart(centeringDiv, data, resources);
    chart.showLegend();

    return chart;
  }
View Full Code Here

Examples of com.google.gwt.topspin.ui.client.Table.addStyleName()

        cell = row.insertCell(-1);
        cellRenderer.render(cell);
      }
    });

    table.addStyleName(getCss().detailsTable());
    // ensure that the table is positioned below the pieChart
    table.getElement().getStyle().setPropertyPx("marginTop", pieChartHeight);
    return table;
  }
View Full Code Here

Examples of com.google.gwt.user.client.ui.AbsolutePanel.addStyleName()

  }

  @Override
  protected Widget createImage() {
    Widget w = new AbsolutePanel();
    w.addStyleName(ConnectorsClientBundle.INSTANCE.css().gwtConnectorsShapeConnectorStartInner());
    return w;
  }

  public Image createEndPointImage() {
    Image img = AbstractImagePrototype.create(ConnectorsBundle.INSTANCE.end_point()).createImage();
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor.addStyleName()

            EveCharacterInfoLink characterLink = new EveCharacterInfoLink(ccpJsMessages, "hcydo", 499939401L);
            characterLink.setTarget("_blank");
            characterString = characterLink.toString();
        }
        Anchor eveOnlineAnchor = new Anchor(constants.eveOnline(), constants.eveOnlineUrl(), "_blank");
        eveOnlineAnchor.addStyleName(resources.css().footerAnchor());
        Anchor ccpGamesAnchor = new Anchor(constants.ccpGames(), constants.ccpGamesUrl(), "_blank");
        ccpGamesAnchor.addStyleName(resources.css().footerAnchor());
        Anchor appEngineAnchor = new Anchor(constants.googleAppEngine(), constants.googleAppEngineUrl(), "_blank");
        appEngineAnchor.addStyleName(resources.css().footerAnchor());
View Full Code Here

Examples of com.google.gwt.user.client.ui.Button.addStyleName()

        }
      });
    }

    Button clearButton = new Button("Clear");
    clearButton.addStyleName("log-clear-button");
    DOM.setStyleAttribute(clearButton.getElement(), "color", "#00c");
    clearButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        ((FocusWidget) sender).setFocus(false);
        Log.clear();
View Full Code Here

Examples of com.google.gwt.user.client.ui.CheckBox.addStyleName()

                op.setText(opUidl.getStringAttribute("caption"));
            } else {
                op = new RadioButton(id, opUidl.getStringAttribute("caption"));
                op.setStyleName("v-radiobutton");
            }
            op.addStyleName(CLASSNAME_OPTION);
            op.setValue(opUidl.getBooleanAttribute("selected"));
            boolean enabled = !opUidl.getBooleanAttribute("disabled")
                    && !isReadonly() && !isDisabled();
            op.setEnabled(enabled);
            setStyleName(op.getElement(), "v-disabled", !enabled);
View Full Code Here

Examples of com.google.gwt.user.client.ui.ComplexPanel.addStyleName()

        ContentSegment segments = new ContentParser().split(comment.getBody().trim());
        boolean oversize = truncate && isTooLong(segments);

        // build/display the comment content, truncating if too long
        final ComplexPanel textContainer = new FlowPanel();
        textContainer.addStyleName(StaticResourceBundle.INSTANCE.coreCss().messageCommentText());
        body.add(textContainer);

        // render only up to the limit
        Widget shortTextWidget = null;
        int size = 0;
View Full Code Here

Examples of com.google.gwt.user.client.ui.DeckPanel.addStyleName()

        header.add(serverName);

        // ----

        final DeckPanel deck = new DeckPanel();
        deck.addStyleName("fill-layout");

        final ListBox selector = new ListBox();

        selector.addItem("Type: Remote");
        selector.addItem("Type: In-VM");
View Full Code Here

Examples of com.google.gwt.user.client.ui.DecoratedPopupPanel.addStyleName()

   *
   * FIXME: (MCM) this should be a unique instance of popup: ask Shawn
   */
  public InfoWindow createInfoWindow(String html, double x, double y) {
    final PopupPanel pp = new DecoratedPopupPanel(true);
    pp.addStyleName("chrono-infoWindow");
    Widget content = new HTML(html);
    content.setStyleName("chrono-infoWindow-content");
    pp.setWidget(content);
    pp.setPopupPosition(getElement().getAbsoluteLeft() + (int)x, getElement().getAbsoluteTop() + (int)y);

View Full Code Here

Examples of com.google.gwt.user.client.ui.DialogBox.addStyleName()

   */
  public static void showAsDialog(StandardDialogBox dialogWidget) {
    DialogBox dialogBox = new DialogBox();
    dialogWidget.dialogBox = dialogBox;

    dialogBox.addStyleName("tty-StandardDialogBox");
    dialogBox.setText(dialogWidget.getTitle());
    dialogBox.add(dialogWidget);
    dialogBox.center();
    dialogBox.show();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.