Examples of addStyleName()


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

    }

    public Widget asWidget() {

        LayoutPanel outerLayout = new LayoutPanel();
        outerLayout.addStyleName("page-header");

        Widget logo = getLogoSection();
        Widget links = getLinksSection();

        LayoutPanel rhs = new LayoutPanel();
View Full Code Here

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

                //verticalPanel.add(slide); 
            } else if (b instanceof ListBehavior) {
                final ListBehavior lb = (ListBehavior) b;
                final ListBox comboBox = new ListBox();
                comboBox.setStyleName("gwt-BehaviorsPopupPanel");
                comboBox.addStyleName("widget");
                for (String listValue : lb.getList()) {
                    comboBox.addItem(listValue);
                }
                verticalPanel.add(comboBox);
                comboBox.setSelectedIndex(lb.indexOfSelection());
View Full Code Here

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

    // Change the primary style name
    menuBar.setStylePrimaryName("myMenuBar");

    // Add the original style names so the default styles apply
    menuBar.addStyleName("gwt-MenuBar gwt-MenuBar-horizontal");

    // Add some sub menus, each with a unique style name
    for (int i = 0; i < 3; i++) {
      MenuBar subMenu = new MenuBar(true);
      subMenu.addItem("Item 1", emptyCommand);
View Full Code Here

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

               docDisplay_.setFocus(true);
               if (isSelectable())
                  onSelected_.execute(completion);
            }
         });
         menuItem.addStyleName(RES.styles().itemMenu());
          
         FontSizer.applyNormalFontSize(menuItem);
        
         addItem(menuItem);
        
View Full Code Here

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

      for (final PatchLineComment c : r.getDrafts()) {
        final Patch.Key patchKey = c.getKey().getParentKey();
        final String fn = patchKey.get();
        if (!fn.equals(priorFile)) {
          panel = new FlowPanel();
          panel.addStyleName(Gerrit.RESOURCES.css().patchComments());
          draftsPanel.add(panel);
          // Parent table can be null here since we are not showing any
          // next/previous links
          panel.add(new PatchLink.SideBySide(
              PatchTable.getDisplayFileName(patchKey), null, patchKey, 0, null, null));
View Full Code Here

Examples of com.google.gwt.user.client.ui.PopupPanel.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.PushButton.addStyleName()

    textbox.setVisibleLength(8);
    textbox.setValue("#000000");
    textbox.addStyleName(ComplexColorPicker.style.margins());

    PushButton custom = new PushButton("Custom...");
    custom.addStyleName(ComplexColorPicker.style.buttonsMargins());
    custom.setStylePrimaryName(ComplexColorPicker.style.customColorPushbutton());
    custom.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        // ComplexColorPicker is a DeckPanel, so we show our widget
View Full Code Here

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

  }

  private RadioButton create(String name) {
    final RadioButton rb = new RadioButton("rg_" + getDomId(), name);
    rb.setFormValue(name);
    rb.addStyleName(Styles.CBRB);
    rb.addClickHandler(new ClickHandler() {

      @SuppressWarnings("synthetic-access")
      @Override
      public void onClick(ClickEvent event) {
View Full Code Here

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

        // Activate the initial theme by only adding the class name. Not calling
        // activateTheme here as it will also cause a full layout and updates to
        // the overlay container which has not yet been created at this point
        activeTheme = applicationConnection.getConfiguration().getThemeName();
        root.addStyleName(activeTheme);

        root.add(getWidget());

        // Set default tab index before focus call. State change handler
        // will update this later if needed.
View Full Code Here

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

    } else {
      scrollable.setWidget((Widget) listView);
    }
    scrollable.setStyleName(style.column());
    if (level == 0) {
      scrollable.addStyleName(style.firstColumn());
    }

    // Create a delegate list view so we can trap data changes.
    ListView<C> listViewDelegate = new ListView<C>() {
      public Range getRange() {
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.