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

Example usage for Java com.google.gwt.user.client.ui MenuItem 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 MenuItem.

The text is from its open source code.

Subclass

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

Implementation

com.google.gwt.user.client.ui.MenuItem has the following implementations.
Click this link to see all its implementation.

Constructor

MenuItem(SafeHtml html, MenuBar subMenu)
Constructs a new menu item that cascades to a sub-menu when it is selected.
MenuItem(SafeHtml html, ScheduledCommand cmd)
Constructs a new menu item that fires a command when it is selected.
MenuItem(String text, MenuBar subMenu)
Constructs a new menu item that cascades to a sub-menu when it is selected.
MenuItem(String text, ScheduledCommand cmd)
Constructs a new menu item that fires a command when it is selected.
MenuItem(@IsSafeHtml String text, boolean asHTML)
MenuItem(@IsSafeHtml String text, boolean asHTML, MenuBar subMenu)
Constructs a new menu item that cascades to a sub-menu when it is selected.
MenuItem(@IsSafeHtml String text, boolean asHTML, ScheduledCommand cmd)
Constructs a new menu item that fires a command when it is selected.
MenuItem(SafeHtml html)
Constructs a new menu item that fires a command when it is selected.

Method

CommandgetCommand()
Gets the command associated with this item.
MenuBargetParentMenu()
Gets the menu that contains this item.
ScheduledCommandgetScheduledCommand()
Gets the scheduled command associated with this item.
MenuBargetSubMenu()
Gets the sub-menu associated with this item.
StringgetText()
booleanisEnabled()
voidsetCommand(Command cmd)
Sets the command associated with this item.
voidsetEnabled(boolean enabled)
voidsetHTML(SafeHtml html)
voidsetHTML(@IsSafeHtml String html)
voidsetParentMenu(MenuBar parentMenu)
voidsetScheduledCommand(ScheduledCommand cmd)
Sets the scheduled command associated with this item.
voidsetSelectionStyle(boolean selected)
voidsetSubMenu(MenuBar subMenu)
Sets the sub-menu associated with this item.