Package com.google.gwt.user.client.ui

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


            });
            panel.add(header);
        }

        Label subheader = new Label(subHeaderText);
        subheader.addStyleName(CSS_POPUP_CONTENT_SUBHEADER);
        panel.add(subheader);
    }

    private void addInfoText(VerticalPanel panel) {
        HTML infotext = new HTML(infoMessage);
View Full Code Here


        FlexTable actionBarPanel = new FlexTable();
        actionBarPanel.addStyleName(CSS_ACTIONBAR_PANEL);

        Label header = new Label(panel.getTitle());
        header.addStyleName(CSS_ACTIONBAR_PANEL_HEADER);
        actionBarPanel.setWidget(0, 0, header);
        actionBarPanel.getFlexCellFormatter().setColSpan(0, 0, 2);

        SimplePanel contentPanel = new SimplePanel();
        contentPanel.add(panel.getContentWidget());
View Full Code Here

        nameTextBox = new TextBox();
        namePanel.add(nameTextBox);
        panel.add(namePanel);

        Label contentLabel = new Label("Paste CSV data below:");
        contentLabel.addStyleName(CSS_IMPORT_PANEL_LABEL);
        panel.add(contentLabel);

        pasteArea = new TextArea();
        panel.add(pasteArea);
        panel.setCellHeight(pasteArea, "100%");
View Full Code Here

    scopeText.setValue(name);
    newRow.add(scopeText);
    freeFormEditors.add(scopeText);

    final Label removeLink = new InlineLabel("X");
    removeLink.addStyleName(style.clickable());
    removeLink.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        freeFormEditors.remove(scopeText);
        additionalScopePanel.remove(newRow);
View Full Code Here

    // Append only the text for the last title.
    Title lastTitle = Iterables.getLast(titles);
    container.add(new InlineLabel(lastTitle.getTitle()));
    if (lastTitle.getSubtitle() != null) {
      Label subtitle = new InlineLabel(" - " + lastTitle.getSubtitle());
      subtitle.addStyleName(style.methodSubtitle());
      container.add(subtitle);
    }
  }

  private void showAuth(ApiService service, ApiMethod method) {
View Full Code Here

    // If a response schema is provided, add a link to the fields editor and
    // tell the fields editor about this method's response schema.
    if (responseSchema != null && responseSchema.getProperties() != null) {
      Label openFieldsEditor = new InlineLabel("Use fields editor");
      openFieldsEditor.addStyleName(Resources.INSTANCE.style().clickable());
      openFieldsEditor.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          fieldsPopupPanel.show();
          fieldsPopupPanel.center();
View Full Code Here

    FlowPanel titlePanel = new FlowPanel();
    Label paddingSpaces = new InlineLabel(indentation(depth));
    titlePanel.add(paddingSpaces);

    Label titleLabel = new InlineLabel(title + openGroup);
    titleLabel.addStyleName(style.jsonKey());
    Collapser.decorateCollapserControl(titleLabel, true);
    titlePanel.add(titleLabel);

    object.add(titlePanel);
View Full Code Here

    // Create the menu itself.
    FlowPanel menuContents = new FlowPanel();

    // Add a description of what the menu does.
    Label header = new Label("Use this resource in one of the following methods:");
    header.addStyleName(style.dropDownMenuItem());
    menuContents.add(header);

    // Add a menu item for each method.
    for (ApiMethod method : methods) {
      PushButton methodItem = new PushButton();
View Full Code Here

      int eventBoxY = eventInsertionHeight + HASHMARK_HEIGHT / 2;
      eventLabel.getElement().getStyle().setPropertyPx(
          "maxHeight", heightInPixels - eventBoxY);
      final T data = timelineData.getData();
      if (onClickBehavior != null && data != null) {
        eventLabel.addStyleName("clickableTimelineEvent");
        eventLabel.addStyleName("secondaryLink");
        eventLabel.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            onClickBehavior.onClick(event, data);
View Full Code Here

      eventLabel.getElement().getStyle().setPropertyPx(
          "maxHeight", heightInPixels - eventBoxY);
      final T data = timelineData.getData();
      if (onClickBehavior != null && data != null) {
        eventLabel.addStyleName("clickableTimelineEvent");
        eventLabel.addStyleName("secondaryLink");
        eventLabel.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            onClickBehavior.onClick(event, data);
          }
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.