jMobileCore toolkit

com.jmobilecore.ui.core
Class CheckboxGroup

java.lang.Object
  extended by com.jmobilecore.ui.core.CheckboxGroup

public class CheckboxGroup
extends java.lang.Object

The CheckboxGroup class is used to group together a set of Checkbox buttons. Exactly one check box button in a CheckboxGroup can be in the "on" state at any given time. Pushing any button sets its state to "on" and forces any other button that is in the "on" state into the "off" state.

Author:
Greg Gridin
See Also:
Checkbox

Field Summary
 Checkbox selectedCheckbox
          The current choice.
 
Constructor Summary
CheckboxGroup()
           
 
Method Summary
 void setSelectedCheckbox(Checkbox box)
          Sets the currently selected check box in this group to be the specified check box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectedCheckbox

public Checkbox selectedCheckbox
The current choice.

Constructor Detail

CheckboxGroup

public CheckboxGroup()
Method Detail

setSelectedCheckbox

public void setSelectedCheckbox(Checkbox box)
Sets the currently selected check box in this group to be the specified check box. This method sets the state of that check box to "on" and sets all other check boxes in the group to be off.

If the check box argument is null, all check boxes in this check box group are deselected. If the check box argument belongs to a different check box group, this method does nothing.

Parameters:
box - the Checkbox to set as the current selection.
See Also:
Checkbox, setSelectedCheckbox(com.jmobilecore.ui.core.Checkbox)

jMobileCore toolkit