Example usage for Java com.google.gwt.user.client.ui MenuBar fields, constructors, methods, implement or subclass
The text is from its open source code.
MenuBar(boolean vertical) Creates an empty menu bar. | |
MenuBar(MenuBarImages images) Creates an empty horizontal menu bar that uses the specified image bundle for menu images. | |
MenuBar(Resources resources) Creates an empty horizontal menu bar that uses the specified ClientBundle for menu images. | |
MenuBar(boolean vertical, MenuBarImages images) Creates an empty menu bar that uses the specified image bundle for menu images. | |
MenuBar(boolean vertical, Resources resources) Creates an empty menu bar that uses the specified ClientBundle for menu images. | |
MenuBar() Creates an empty horizontal menu bar. |
HandlerRegistration | addCloseHandler(CloseHandler |
MenuItem | addItem(SafeHtml html, Command cmd) Adds a menu item to the bar containing SafeHtml, that will fire the given command when it is selected. |
MenuItem | addItem(SafeHtml html, MenuBar popup) Adds a menu item to the bar, that will open the specified menu when it is selected. |
MenuItem | addItem(String text, Command cmd) Adds a menu item to the bar, that will fire the given command when it is selected. |
MenuItem | addItem(String text, MenuBar popup) Adds a menu item to the bar, that will open the specified menu when it is selected. |
MenuItem | addItem(MenuItem item) Adds a menu item to the bar. |
MenuItem | addItem(String text, boolean asHTML, Command cmd) Adds a menu item to the bar, that will fire the given command when it is selected. |
MenuItem | addItem(String text, boolean asHTML, MenuBar popup) Adds a menu item to the bar, that will open the specified menu when it is selected. |
MenuItemSeparator | addSeparator() Adds a thin line to the MenuBar to separate sections of MenuItem s. |
MenuItemSeparator | addSeparator(MenuItemSeparator separator) Adds a thin line to the MenuBar to separate sections of MenuItem s. |
void | clearItems() Removes all menu items from this menu bar. |
void | focus() Give this MenuBar focus. |
MenuItem | insertItem(MenuItem item, int beforeIndex) Adds a menu item to the bar at a specific index. |
MenuItemSeparator | insertSeparator(int beforeIndex) Adds a thin line to the MenuBar to separate sections of MenuItem s at the specified index. |
void | removeItem(MenuItem item) Removes the specified menu item from the bar. |
void | removeSeparator(MenuItemSeparator separator) Removes the specified MenuItemSeparator from the bar. |
void | selectItem(MenuItem item) Select the given MenuItem, which must be a direct child of this MenuBar. |
void | setAnimationEnabled(boolean enable) |
void | setAutoOpen(boolean autoOpen) Sets whether this menu bar's child menus will open when the mouse is moved over it. |
void | setFocusOnHoverEnabled(boolean enabled) Enable or disable auto focus when the mouse hovers over the MenuBar. |