|
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.WCheckBox
Implements a graphical check box. A check box is a visual component that represents a boolean state, true or false.
Constructor Summary | |
WCheckBox()
Constructs a check box witha default value of false; |
Method Summary | |
protected void |
handleNoParams(WRunner runner)
|
protected void |
handleParams(WRunner runner,
String[] values)
|
boolean |
isSelected()
Returns true if the check box is checked, false otherwise. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
setSelected(boolean selected)
Sets the value of the check box selected. |
Methods inherited from class org.westofj.wui.Widget |
addChangeListener, getRunner, hasChangeListeners, removeChangeListener, stateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WCheckBox()
Method Detail |
public boolean isSelected()
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 void setSelected(boolean selected)
selected
- true the value of the check box selection.protected void handleNoParams(WRunner runner)
handleNoParams
in class Widget
protected void handleParams(WRunner runner, String[] values)
handleParams
in class Widget
|
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 |