WUI : API


org.westofj.wui
Class WCheckBox

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WCheckBox

public class WCheckBox
extends Widget

Implements a graphical check box. A check box is a visual component that represents a boolean state, true or false.

Version:
$Revision: 1.3 $, $Date: 2004/03/14 21:27:46 $
Author:
bill

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

WCheckBox

public WCheckBox()
Constructs a check box witha default value of false;

Method Detail

isSelected

public boolean isSelected()
Returns true if the check box is checked, false otherwise.

Returns:
boolean true if the check box is checked, false otherwise.

render

public void render(WRunner runner,
                   WRenderContext context,
                   PrintWriter out)
Description copied from class: Widget
Renders the widget to the display.

Specified by:
render in class Widget
Parameters:
runner - the current runner context.
out - the output for the display.

setSelected

public void setSelected(boolean selected)
Sets the value of the check box selected. True if the check box is checked, false otherwise.

Parameters:
selected - true the value of the check box selection.

handleNoParams

protected void handleNoParams(WRunner runner)
Overrides:
handleNoParams in class Widget

handleParams

protected void handleParams(WRunner runner,
                            String[] values)
Overrides:
handleParams in class Widget

Copyright (c) 2003 West of J - All rights reserved.