|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.Widget
org.westofj.wui.WAbstractButton
org.westofj.wui.WMenuElement
org.westofj.wui.WMenuItem
A selectable item within a WMenu
.
Constructor Summary | |
WMenuItem()
Constructs a menu item. |
|
WMenuItem(String text)
Constructs a menu item with the specified text. |
|
WMenuItem(WDisplayable text)
Constructs a menu item with the specified text. |
Method Summary | |
int |
getElementCount()
Returns the number of elements contained within this menu element. |
List |
getSubElements()
Returns the sub-menu elements of this menu element. |
Methods inherited from class org.westofj.wui.WMenuElement |
render, renderModifier |
Methods inherited from class org.westofj.wui.WAbstractButton |
addActionListener, getActionCommand, getText, getText, handleParams, hasActionListeners, isEnabled, press, removeActionListener, setActionCommand, setEnabled, setText, setText |
Methods inherited from class org.westofj.wui.Widget |
addChangeListener, getRunner, handleNoParams, hasChangeListeners, removeChangeListener, stateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WMenuItem()
public WMenuItem(String text)
text
- the label of the menu item.public WMenuItem(WDisplayable text)
text
- the label of the menu item.Method Detail |
public int getElementCount()
WMenuElement
getElementCount
in class WMenuElement
public List getSubElements()
WMenuElement
getSubElements
in class WMenuElement
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |