Java com.google.gwt.user.client.ui MenuBar fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.user.client.ui MenuBar fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.user.client.ui MenuBar.

The text is from its open source code.

Subclass

com.google.gwt.user.client.ui.MenuBar has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

HandlerRegistrationaddCloseHandler(CloseHandler handler)
MenuItemaddItem(SafeHtml html, Command cmd)
Adds a menu item to the bar containing SafeHtml, that will fire the given command when it is selected.
MenuItemaddItem(SafeHtml html, MenuBar popup)
Adds a menu item to the bar, that will open the specified menu when it is selected.
MenuItemaddItem(String text, Command cmd)
Adds a menu item to the bar, that will fire the given command when it is selected.
MenuItemaddItem(String text, MenuBar popup)
Adds a menu item to the bar, that will open the specified menu when it is selected.
MenuItemaddItem(MenuItem item)
Adds a menu item to the bar.
MenuItemaddItem(String text, boolean asHTML, Command cmd)
Adds a menu item to the bar, that will fire the given command when it is selected.
MenuItemaddItem(String text, boolean asHTML, MenuBar popup)
Adds a menu item to the bar, that will open the specified menu when it is selected.
MenuItemSeparatoraddSeparator()
Adds a thin line to the MenuBar to separate sections of MenuItem s.
MenuItemSeparatoraddSeparator(MenuItemSeparator separator)
Adds a thin line to the MenuBar to separate sections of MenuItem s.
voidclearItems()
Removes all menu items from this menu bar.
voidfocus()
Give this MenuBar focus.
MenuIteminsertItem(MenuItem item, int beforeIndex)
Adds a menu item to the bar at a specific index.
MenuItemSeparatorinsertSeparator(int beforeIndex)
Adds a thin line to the MenuBar to separate sections of MenuItem s at the specified index.
voidremoveItem(MenuItem item)
Removes the specified menu item from the bar.
voidremoveSeparator(MenuItemSeparator separator)
Removes the specified MenuItemSeparator from the bar.
voidselectItem(MenuItem item)
Select the given MenuItem, which must be a direct child of this MenuBar.
voidsetAnimationEnabled(boolean enable)
voidsetAutoOpen(boolean autoOpen)
Sets whether this menu bar's child menus will open when the mouse is moved over it.
voidsetFocusOnHoverEnabled(boolean enabled)
Enable or disable auto focus when the mouse hovers over the MenuBar.