|
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
org.westofj.wui.WCheckMenuItem
A menu item that behaves as a check box.
| Constructor Summary | |
WCheckMenuItem()
Constructs a check menu item. |
|
WCheckMenuItem(String text)
Constructs a check menu item with the specified text. |
|
WCheckMenuItem(WDisplayable text)
Constructs a check menu item with the specified text. |
|
| Method Summary | |
boolean |
isSelected()
Returns true if the check menu item is selected, false otherwise. |
void |
press()
Presses the button. |
void |
renderModifier(WRunner runner,
PrintWriter out)
Renders a modifier image to the display. |
void |
setSelected(boolean selected)
Sets if the check menu item is selected. |
| Methods inherited from class org.westofj.wui.WMenuItem |
getElementCount, getSubElements |
| Methods inherited from class org.westofj.wui.WMenuElement |
render |
| Methods inherited from class org.westofj.wui.WAbstractButton |
addActionListener, getActionCommand, getText, getText, handleParams, hasActionListeners, isEnabled, 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 WCheckMenuItem()
public WCheckMenuItem(String text)
text - the label of the check menu item.public WCheckMenuItem(WDisplayable text)
text - the label of the check menu item.| Method Detail |
public boolean isSelected()
public void setSelected(boolean selected)
selected - true if the check menu item is selected, false otherwise.
public void renderModifier(WRunner runner,
PrintWriter out)
WMenuElementWMenuElement.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.
renderModifier in class WMenuElementrunner - the current runner context.out - the output for the display.public void press()
WAbstractButton
press in class WAbstractButton
|
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 | ||||||||||