|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.client.ui.UIObject com.vaadin.terminal.gwt.client.ui.menubar.MenuItem
@Deprecated public class MenuItem
A widget that can be placed in a
MenuBar
. Menu items can either fire a
Command
when they are clicked, or open a
cascading sub-menu.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
MenuItem(String text,
boolean asHTML,
com.google.gwt.user.client.Command cmd)
Deprecated. Constructs a new menu item that fires a command when it is selected. |
|
MenuItem(String text,
boolean asHTML,
MenuBar subMenu)
Deprecated. Constructs a new menu item that cascades to a sub-menu when it is selected. |
|
MenuItem(String text,
com.google.gwt.user.client.Command cmd)
Deprecated. Constructs a new menu item that fires a command when it is selected. |
|
MenuItem(String text,
MenuBar subMenu)
Deprecated. Constructs a new menu item that cascades to a sub-menu when it is selected. |
Method Summary | |
---|---|
com.google.gwt.user.client.Command |
getCommand()
Deprecated. Gets the command associated with this item. |
String |
getHTML()
Deprecated. |
MenuBar |
getParentMenu()
Deprecated. Gets the menu that contains this item. |
MenuBar |
getSubMenu()
Deprecated. Gets the sub-menu associated with this item. |
String |
getText()
Deprecated. |
void |
setCommand(com.google.gwt.user.client.Command cmd)
Deprecated. Sets the command associated with this item. |
void |
setHTML(String html)
Deprecated. |
void |
setSubMenu(MenuBar subMenu)
Deprecated. Sets the sub-menu associated with this item. |
void |
setText(String text)
Deprecated. |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MenuItem(String text, com.google.gwt.user.client.Command cmd)
text
- the item's textcmd
- the command to be fired when it is selectedpublic MenuItem(String text, boolean asHTML, com.google.gwt.user.client.Command cmd)
text
- the item's textasHTML
- true
to treat the specified text as htmlcmd
- the command to be fired when it is selectedpublic MenuItem(String text, MenuBar subMenu)
text
- the item's textsubMenu
- the sub-menu to be displayed when it is selectedpublic MenuItem(String text, boolean asHTML, MenuBar subMenu)
text
- the item's textasHTML
- true
to treat the specified text as htmlsubMenu
- the sub-menu to be displayed when it is selectedMethod Detail |
---|
public com.google.gwt.user.client.Command getCommand()
null
if none existspublic String getHTML()
getHTML
in interface com.google.gwt.user.client.ui.HasHTML
public MenuBar getParentMenu()
null
if none exists.public MenuBar getSubMenu()
null
if none existspublic String getText()
getText
in interface com.google.gwt.user.client.ui.HasText
public void setCommand(com.google.gwt.user.client.Command cmd)
cmd
- the command to be associated with this itempublic void setHTML(String html)
setHTML
in interface com.google.gwt.user.client.ui.HasHTML
public void setSubMenu(MenuBar subMenu)
subMenu
- this item's new sub-menupublic void setText(String text)
setText
in interface com.google.gwt.user.client.ui.HasText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |