com.vaadin.client.ui.menubar
Class MenuItem

java.lang.Object
  extended by UIObject
      extended by com.vaadin.client.ui.menubar.MenuItem

Deprecated.

@Deprecated
public class MenuItem
extends UIObject

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

MenuItem

public MenuItem(java.lang.String text,
                Command cmd)
Deprecated. 
Constructs a new menu item that fires a command when it is selected.

Parameters:
text - the item's text
cmd - the command to be fired when it is selected

MenuItem

public MenuItem(java.lang.String text,
                boolean asHTML,
                Command cmd)
Deprecated. 
Constructs a new menu item that fires a command when it is selected.

Parameters:
text - the item's text
asHTML - true to treat the specified text as html
cmd - the command to be fired when it is selected
Method Detail

getCommand

public Command getCommand()
Deprecated. 
Gets the command associated with this item.

Returns:
this item's command, or null if none exists

getHTML

public java.lang.String getHTML()
Deprecated. 

getParentMenu

public MenuBar getParentMenu()
Deprecated. 
Gets the menu that contains this item.

Returns:
the parent menu, or null if none exists.

getSubMenu

public MenuBar getSubMenu()
Deprecated. 
Gets the sub-menu associated with this item.

Returns:
this item's sub-menu, or null if none exists

getText

public java.lang.String getText()
Deprecated. 

setCommand

public void setCommand(Command cmd)
Deprecated. 
Sets the command associated with this item.

Parameters:
cmd - the command to be associated with this item

setHTML

public void setHTML(java.lang.String html)
Deprecated. 

setSubMenu

public void setSubMenu(MenuBar subMenu)
Deprecated. 
Sets the sub-menu associated with this item.

Parameters:
subMenu - this item's new sub-menu

setText

public void setText(java.lang.String text)
Deprecated. 


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.