| java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.MenuItem
Constructor Summary | |
public | MenuItem(String text, Command cmd) Constructs a new menu item that fires a command when it is selected. | public | MenuItem(String text, boolean asHTML, Command cmd) Constructs a new menu item that fires a command when it is selected. | public | MenuItem(String text, MenuBar subMenu) Constructs a new menu item that cascades to a sub-menu when it is selected. | public | MenuItem(String text, boolean asHTML, MenuBar subMenu) Constructs a new menu item that cascades to a sub-menu when it is selected. | | MenuItem(String text, boolean asHTML) |
MenuItem | public MenuItem(String text, Command cmd)(Code) | | Constructs a new menu item that fires a command when it is selected.
Parameters: text - the item's text Parameters: cmd - the command to be fired when it is selected |
MenuItem | public MenuItem(String text, boolean asHTML, Command cmd)(Code) | | Constructs a new menu item that fires a command when it is selected.
Parameters: text - the item's text Parameters: asHTML - true to treat the specified text as html Parameters: cmd - the command to be fired when it is selected |
MenuItem | public MenuItem(String text, MenuBar subMenu)(Code) | | Constructs a new menu item that cascades to a sub-menu when it is selected.
Parameters: text - the item's text Parameters: subMenu - the sub-menu to be displayed when it is selected |
MenuItem | public MenuItem(String text, boolean asHTML, MenuBar subMenu)(Code) | | Constructs a new menu item that cascades to a sub-menu when it is selected.
Parameters: text - the item's text Parameters: asHTML - true to treat the specified text as html Parameters: subMenu - the sub-menu to be displayed when it is selected |
getCommand | public Command getCommand()(Code) | | Gets the command associated with this item.
this item's command, or null if none exists |
getParentMenu | public MenuBar getParentMenu()(Code) | | Gets the menu that contains this item.
the parent menu, or null if none exists. |
getSubMenu | public MenuBar getSubMenu()(Code) | | Gets the sub-menu associated with this item.
this item's sub-menu, or null if none exists |
setCommand | public void setCommand(Command cmd)(Code) | | Sets the command associated with this item.
Parameters: cmd - the command to be associated with this item |
setSelectionStyle | void setSelectionStyle(boolean selected)(Code) | | |
setSubMenu | public void setSubMenu(MenuBar subMenu)(Code) | | Sets the sub-menu associated with this item.
Parameters: subMenu - this item's new sub-menu |
|
|