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

Examples of com.google.gwt.user.client.ui.MenuItemSeparator


   @Override
   public MenuItemSeparator insertSeparator(MenuItemSeparator separator,
                                            int beforeIndex) throws IndexOutOfBoundsException
   {
      MenuItemSeparator value = super.insertSeparator(separator, beforeIndex);
      separators_.add(value);
      return value;
   }
View Full Code Here


public class PTMenuItemSeparator extends PTUIObject<MenuItemSeparator> {

    @Override
    public void create(final PTInstruction create, final UIService uiService) {
        init(create, uiService, new MenuItemSeparator());
    }
View Full Code Here

  private void initMenuBar(MenuBar menuBar) {
    menuBar.clearItems();
    if (!newUser) {
      MenuItem mntmHome = new MenuItem("Home", false, homeCommand());
      menuBar.addItem(mntmHome);
      menuBar.addSeparator(new MenuItemSeparator());
    }

    MenuItem mntmProfile = new MenuItem("Profile", false, profileCommand());
    menuBar.addItem(mntmProfile);
    menuBar.addSeparator(new MenuItemSeparator());

    if (!newUser) {
      MenuItem mntmBuzz = new MenuItem("Opportunities", false,
          opportunityCommand());
      menuBar.addItem(mntmBuzz);
      menuBar.addSeparator(new MenuItemSeparator());
    }
   
    MenuItem searchData = new MenuItem("Search", false, searchCommand());
    menuBar.addItem(searchData);

    menuBar.addSeparator(new MenuItemSeparator());
    MenuItem mntmPulse = new MenuItem("Pulse", false, pulseCommand());
    menuBar.addItem(mntmPulse);
   
    menuBar.addStyleName("menuBar");
  }
View Full Code Here

      // Arrange
      MenuBar bar = new MenuBar();
      bar.addItem("test0", cmd);

      // Act
      MenuItemSeparator separator = bar.addSeparator();
      bar.addItem("test1", cmd);

      // Assert
      assertEquals(1, bar.getSeparatorIndex(separator));
   }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.MenuItemSeparator

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.