Java Code Examples for com.google.gwt.user.client.ui.MenuBar#addSeparator()
The following examples show how to use
com.google.gwt.user.client.ui.MenuBar#addSeparator() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CubaGridWidget.java From cuba with Apache License 2.0 | 5 votes |
protected void initDefaultToggles() { MenuBar sidebarMenu = getSidebarMenu(); sidebarMenu.addItem(createSelectAllToggle()); sidebarMenu.addItem(createDeselectAllToggle()); sidebarMenu.addSeparator(); }
Example 2
Source File: CubaTreeGridWidget.java From cuba with Apache License 2.0 | 5 votes |
protected void initDefaultToggles() { MenuBar sidebarMenu = getSidebarMenu(); sidebarMenu.addItem(createSelectAllToggle()); sidebarMenu.addItem(createDeselectAllToggle()); sidebarMenu.addSeparator(); }
Example 3
Source File: GwtMenuBarImplConnector.java From consulo with Apache License 2.0 | 5 votes |
public static void addItems(List<Widget> child, MenuBar bar) { for (Widget widget : child) { if (widget instanceof GwtMenuItemImpl) { bar.addItem(((GwtMenuItemImpl)widget).getItem()); } else if (widget instanceof GwtMenuSeparatorImpl) { bar.addSeparator(); } else if(widget instanceof GwtMenuImpl) { bar.addItem(((GwtMenuImpl)widget).getMenu()); } } }