| PREV CLASS Documentation homepage. NEXT CLASS |
IlvObject
|
+--IlvPanel
|
+--IlvMenuItem
|
+--IlvMenu
Each item in a menu must belong to the IlvMenuItem class.
It can be an instance of IlvMenuItem or a submenu
(an instance of IlvMenu).
| Constructor Summary | |
|---|---|
IlvMenu(label, isEnabled, image, path)
|
|
| Method Summary | |
|---|---|
add(menuItem)
Adds the specified menu item to this menu. |
|
collapse()
Collapses this menu and every child. |
|
computeChildrenSize()
Compute and sets the size of the children using the getPreferredSize method. |
|
getChild(index)
Returns the child at the specified index or null. |
|
getChildren()
Returns a copy of the children array of this menu. |
|
getChildrenCount()
Returns the number of children of this menu. |
|
getChildrenHeight()
Returns the height of the submenu made up of all the children of this menu. |
|
getChildrenWidth()
Returns the width of the submenu made up of all the children of this menu. |
|
isExpanded()
Checks whether this menu is expanded (that is, if the submenu is visible). |
|
isVisible()
Checks whether this menu is visible. |
|
onmouseover()
Invoked each time the user moves the mouse over this menu. |
|
recycle()
Prepares this menu to be recycled. |
|
setExpanded(isExpanded)
Specifies whether this menu is expanded (that is, if the submenu is visible). |
|
setHighlighted(isHighlighted)
Specifies whether this menu is highlighted. |
|
setHighlightedChild(child)
Highlights the given child, and lowlights any other. |
|
setLocation(left, top)
Sets the location of this menu. |
|
setVisible(isVisible)
Specifies whether this menu is visible. |
|
| Constructor Detail |
IlvMenu(label, isEnabled, image, path)
| Method Detail |
add(menuItem)
menuItem - The menu item to be added.collapse()
computeChildrenSize()
getChild(index)
null.
getChildren()
getChildrenCount()
getChildrenHeight()
getChildrenWidth()
isExpanded()
true if the menu is expanded; otherwise, it returns false.isVisible()
true if the menu item is visible; otherwise, it returns false.onmouseover()
recycle()
setExpanded(isExpanded)
isEnabled - If true, this menu is expanded.setHighlighted(isHighlighted)
isHighlighted - If true, this menu is highlighted.
#setExpandedsetHighlightedChild(child)
setLocation(left, top)
left - The y coordinate of the top-left corner of the menu.top - The x coordinate of the top-left corner of the menu.setVisible(isVisible)
| Inherited Methods from IlvMenuItem |
| Inherited Methods from IlvPanel |
| Inherited Methods from IlvObject |
| PREV CLASS Documentation homepage. NEXT CLASS |