|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectUIObject
com.vaadin.client.ui.menubar.MenuItem
@Deprecated public class MenuItem
A widget that can be placed in a
com.google.gwt.user.client.ui.MenuBar. Menu items can either fire a
com.google.gwt.user.client.Command when they are clicked, or open a
cascading sub-menu.
| Constructor Summary | |
|---|---|
MenuItem(java.lang.String text,
boolean asHTML,
Command cmd)
Deprecated. Constructs a new menu item that fires a command when it is selected. |
|
MenuItem(java.lang.String text,
Command cmd)
Deprecated. Constructs a new menu item that fires a command when it is selected. |
|
| Method Summary | |
|---|---|
Command |
getCommand()
Deprecated. Gets the command associated with this item. |
java.lang.String |
getHTML()
Deprecated. |
MenuBar |
getParentMenu()
Deprecated. Gets the menu that contains this item. |
MenuBar |
getSubMenu()
Deprecated. Gets the sub-menu associated with this item. |
java.lang.String |
getText()
Deprecated. |
void |
setCommand(Command cmd)
Deprecated. Sets the command associated with this item. |
void |
setHTML(java.lang.String html)
Deprecated. |
void |
setSubMenu(MenuBar subMenu)
Deprecated. Sets the sub-menu associated with this item. |
void |
setText(java.lang.String text)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuItem(java.lang.String text,
Command cmd)
text - the item's textcmd - the command to be fired when it is selected
public MenuItem(java.lang.String text,
boolean asHTML,
Command cmd)
text - the item's textasHTML - true to treat the specified text as htmlcmd - the command to be fired when it is selected| Method Detail |
|---|
public Command getCommand()
null if none existspublic java.lang.String getHTML()
public MenuBar getParentMenu()
null if none exists.public MenuBar getSubMenu()
null if none existspublic java.lang.String getText()
public void setCommand(Command cmd)
cmd - the command to be associated with this itempublic void setHTML(java.lang.String html)
public void setSubMenu(MenuBar subMenu)
subMenu - this item's new sub-menupublic void setText(java.lang.String text)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||