|
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.WRadioMenuItem
A menu item that behaves as a radio button. Radio menu items are grouped within the same menu. Only one radio menu item within a menu may be selected at one time.
Constructor Summary | |
WRadioMenuItem()
Constructs a radio menu item. |
|
WRadioMenuItem(String text)
Constructs a radio menu item with the specified text. |
|
WRadioMenuItem(WDisplayable text)
Constructs a radio menu item with the specified text. |
Method Summary | |
boolean |
isSelected()
Returns true if the radio 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 radio 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 WRadioMenuItem()
public WRadioMenuItem(String text)
text
- the label of the radio menu item.public WRadioMenuItem(WDisplayable text)
text
- the label of the radio menu item.Method Detail |
public void renderModifier(WRunner runner, PrintWriter out)
WMenuElement
WMenuElement.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 WMenuElement
runner
- the current runner context.out
- the output for the display.public boolean isSelected()
public void setSelected(boolean selected)
selected
- true if the radio menu item is selected, false otherwise.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 |