|
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
An element of a menu.
Constructor Summary | |
WMenuElement()
Constructs a menu element. |
|
WMenuElement(String text)
Constructs a menu element with the specified label. |
|
WMenuElement(WDisplayable text)
Constructs a menu element with the specified label. |
Method Summary | |
abstract int |
getElementCount()
Returns the number of elements contained within this menu element. |
abstract List |
getSubElements()
Returns the sub-menu elements of this menu element. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
renderModifier(WRunner runner,
PrintWriter out)
Renders a modifier image to the display. |
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 WMenuElement()
public WMenuElement(String text)
text
- the label of the menu element.public WMenuElement(WDisplayable text)
text
- the label of the menu element.Method Detail |
public void render(WRunner runner, WRenderContext context, PrintWriter out)
Widget
render
in class Widget
runner
- the current runner context.out
- the output for the display.public abstract int getElementCount()
public abstract List getSubElements()
public void renderModifier(WRunner runner, PrintWriter out)
render(org.westofj.wui.WRunner, org.westofj.wui.WRenderContext, java.io.PrintWriter)
method to allow
menu containers to place the modifier in different locations on the display.
runner
- the current runner context.out
- the output for the display.
|
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 |