IlvObject
   |
   +--IlvPanel
      |
      +--IlvMenuItem
  
   
	
		IlvMenuItem with the specified label,isEnabled,action and image properties.
properties. Note that the use of "-" in a label is reserved to indicate a
separator between menu items. By default, all menu items are enabled, except
separators.| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
							 
								IlvMenuItem(label, isEnabled, action, image, path)
							 
							
						 | 
					
| Method Attributes | Method Name and Description | 
|---|---|
| 
								 
								createHTMLContent(width, height)
								 
								Generates the HTML representation of this menu item. 
							 | 
						|
| 
								
								 Returns the action to trigger when this menu item is selected. 
							 | 
						|
| 
								 
								getIcon()
								 
								Retrieves the icon of this menu item. 
							 | 
						|
| 
								
								 Returns the preferred size used by the icon of this menu item. 
							 | 
						|
| 
								 
								getLabel()
								 
								Retrieves the label of this menu item. 
							 | 
						|
| 
								
								 Returns the parent of this menu item. 
							 | 
						|
| 
								
								 Returns the preferred size for this menu item. 
							 | 
						|
| 
								 
								getRoot()
								 
								Returns the root  
							IlvMenu instance for this menu item. | 
						|
| 
								
								 Checks whether this menu item is enabled. 
							 | 
						|
| 
								
								 Checks whether this menu item is highlighted. 
							 | 
						|
| 
								 
								isRoot()
								 
								Returns  
							true if this menu is of type IlvMenu and a root menu. | 
						|
| 
								
								 Invoked each time the user moves the mouse over this menu item. 
							 | 
						|
| 
								
								 Invoked each time the user clicks this menu item. 
							 | 
						|
| 
								 
								performServerAction(actionName, params, updateAll)
								 
								Performs a server action, using the action name and the parameters. 
							 | 
						|
| 
								 
								recycle()
								 
								Prepares this menu item to be recycled. 
							 | 
						|
| 
								 
								setAction(action)
								 
								Sets the action to trigger when this menu item is selected.  | 
						|
| 
								 
								setEnabled(isEnabled)
								 
								Specifies whether this menu item can be chosen. 
							 | 
						|
| 
								 
								setHighlighted(isHighlighted)
								 
								Specifies whether this menu item is highlighted. 
							 | 
						|
| 
								 
								setIcon(image)
								 
								Sets the icon for this menu item to the specified image URL. 
							 | 
						|
| 
								 
								setLabel(label)
								 
								Sets the label for this menu item to the specified label. 
							 | 
						|
| 
								 
								setLocation(left, top)
								 
								Sets the location of this menu item. 
							 | 
						|
| 
								 
								setPreferredSize(width, height)
								 
								Sets the preferred size of this menu item. 
							 | 
						|
| 
								 
								setSize(width, height)
								 
								Sets the size of this menu item. 
							 | 
						|
| 
								 
								setVisible(isVisible)
								 
								Specifies whether this menu item is visible or not. 
							 | 
						|
| 
								 
								update()
								 
								Updates the content of the menu item. 
							 | 
						
| dispose, getBounds, getClip, getCursor, getHeight, getLeft, getMouseEventSource, getScrollPosition, getTop, getWidth, getZIndex, isVisible, setBackgroundColor, setBackgroundImage, setBounds, setClip, setCursor, setScrollPosition, setZIndex, translate | 
| getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility | 
This method is invoked without any parameters by the getPreferredSize method
to compute the best size for this menu item.
						
						 
					
IlvMenu. An instance of IlvMenuItem has
always a parent. However, the root instance of IlvMenu
returns null.
						
						 
					IlvMenu instance for this menu item.
						
						 
					true if the  menu item is enabled; false if it is disabled.true if the  menu item is highlighted; otherwise, returns false.true if this menu is of type IlvMenu and a root menu.
If this menu is of type IlvMenuItem, or an IlvMenu that
is a submenu, this method returns false.
						
						 
					This method sends the action corresponding to this menu item to the server and refreshes the view. It can be modified/overridden to handle the action locally or in a different way.
performServerAction of the pop-up menu 
attached to the root menu of this menu item.
						
						 
					Sets the action to trigger when this menu item is selected.
The action can either be a String or a function.
In the function signature has two parameters:
view The view on which this pop-up menu is displayeditem The menu item that was selected.true, the menu item is enabled; if false, the menu item is disabled.
								
							true, this menu item is highlighted.
								
							null for no icon.
								
							null for no label.
								
							y coordinate of the top-left corner of the menu item.
								
							x coordinate of the top-left corner of the menu item.