Example usage for Java com.google.gwt.user.client.ui MenuItem fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
Command | getCommand() Gets the command associated with this item. |
MenuBar | getParentMenu() Gets the menu that contains this item. |
ScheduledCommand | getScheduledCommand() Gets the scheduled command associated with this item. |
MenuBar | getSubMenu() Gets the sub-menu associated with this item. |
String | getText() |
boolean | isEnabled() |
void | setCommand(Command cmd) Sets the command associated with this item. |
void | setEnabled(boolean enabled) |
void | setHTML(SafeHtml html) |
void | setHTML(@IsSafeHtml String html) |
void | setParentMenu(MenuBar parentMenu) |
void | setScheduledCommand(ScheduledCommand cmd) Sets the scheduled command associated with this item. |
void | setSelectionStyle(boolean selected) |
void | setSubMenu(MenuBar subMenu) Sets the sub-menu associated with this item. |