Examples of addStyleName()


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

        if(null==first)
            throw new IllegalStateException("Make sure to render the default (edit) widget first!");

        DisclosurePanel second = new DisclosurePanel(groupName);
        second.addStyleName("default-disclosure");
        second.addStyleName("fill-layout-width");
        second.add( plainView.asWidget(metaData));

        linkOneToEachOther(first, second);
View Full Code Here

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

    Css css = resources.warningPaneCss();
    outerElement.addStyleName(css.warningPaneOuter());
    outerElement.setVisible(false);

    DockPanel innerElement = new DockPanel();
    innerElement.addStyleName(css.warningPaneInner());
    outerElement.add(innerElement, DockPanel.NORTH);

    textElement.addStyleName(css.warningPaneText());
    innerElement.add(textElement, DockPanel.CENTER);
View Full Code Here

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

        // to the right. I couldn't figure out why,
        // but for whatever reason, this works.
        FlowPanel fileUploadWrapper = new FlowPanel();
        FileUpload upload = new FileUpload();
        upload.setName("imageUploadFormElement");
        upload.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formAvatarUpload());
        fileUploadWrapper.add(upload);
        uploadPanel.add(fileUploadWrapper);

        uploadPanel.add(new Label(description));
        Anchor submitButton = new Anchor("");
View Full Code Here

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

        resetGlassPanels();
      }
    });

    FlexTable buttonTable = new FlexTable();
    buttonTable.addStyleName("buttons");
    RootPanel.get().add(buttonTable, 0, 0);
    buttonTable.setWidget(0, 0, buttonBodyDefault);
    buttonTable.setWidget(0, 1, buttonBodyLarge);

    buttonTable.setWidget(1, 0, buttonHTMLDefault);
View Full Code Here

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

      table.setWidth("");
      table.setText(0, 2, Util.C.columnBranchName());
      table.setText(0, 3, Util.C.columnBranchRevision());

      final FlexCellFormatter fmt = table.getFlexCellFormatter();
      fmt.addStyleName(0, 1, Gerrit.RESOURCES.css().iconHeader());
      fmt.addStyleName(0, 2, Gerrit.RESOURCES.css().dataHeader());
      fmt.addStyleName(0, 3, Gerrit.RESOURCES.css().dataHeader());
      if (Gerrit.getGitwebLink() != null) {
        fmt.addStyleName(0, 4, Gerrit.RESOURCES.css().dataHeader());
      }
View Full Code Here

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

  @Override
  public void add(Widget w) {

    FlowPanel widgetHolder = new FlowPanel();
    widgetHolder.addStyleName(this.appearance.css().carouselHolder());
    widgetHolder.add(w);

    childToHolder.put(w, widgetHolder);

    container.add(widgetHolder);
View Full Code Here

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

    FocusPanel header;
    header = new FocusPanel();
    HorizontalPanel masterPanel = new HorizontalPanel();
    masterPanel.setWidth("100%");
    header.add(masterPanel);
    header.addStyleName(STYLE_LOG_HEADER);

    final Label titleLabel = new Label("gwt-log", false);
    titleLabel.setStylePrimaryName("log-title");

    HorizontalPanel buttonPanel = new HorizontalPanel();
View Full Code Here

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

    }

    private FormPanel newForm(final String hdr) {
        FormPanel fp = new FormPanel();
        fp.setWidth( "100%" );
        fp.addStyleName( "guvnor-FormPanel" );
        if ( hdr != null ) {
            fp.setTitle( hdr );
        }
        return fp;
    }
View Full Code Here

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

          String color = COLORS[cell.getRowIndex() * COLS + cell.getCellIndex()];
          onColorChoose(color);
        }
      }
    });
    grid.addStyleName(style.grid());
    initWidget(grid);
  }

  /**
   * Creates the cell for each color.
View Full Code Here

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

    dropTarget.insert(widget, beforeIndex);
  }

  protected Widget newPositioner(DragContext context) {
    HTML positioner = new HTML("※");
    positioner.addStyleName(CSS_DRAGDROP_FLOW_PANEL_POSITIONER);
    return positioner;
  }
}
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.