All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.CheckboxGadgetGroup

java.lang.Object
   |
   +----dtai.gwt.CheckboxGadgetGroup

public class CheckboxGadgetGroup
extends Object
This class is used to create a multiple-exclusion scope for a set of Checkbox buttons. For example, creating a set of Checkbox buttons with the same CheckboxGroup object means that only one of those Checkbox buttons will be allowed to be "on" at a time.


Constructor Index

 o CheckboxGadgetGroup()

Method Index

 o add(CheckboxGadget)
Adds the given CheckboxGadget to the checkboxes vector.
 o getSelectedCheckbox()
Gets the selectedCheckbox.
 o remove(CheckboxGadget)
Removes the given CheckboxGadget from the checkboxes vector.
 o setSelectedCheckbox(CheckboxGadget)
If the given CheckboxGadget is in the checkboxes vecter, then selectedCheckbox is set to it.

Constructors

 o CheckboxGadgetGroup
 public CheckboxGadgetGroup()

Methods

 o add
 protected void add(CheckboxGadget checkbox)
Adds the given CheckboxGadget to the checkboxes vector. If the selectedCheckbox object is null, the given CheckboxGadget is selected, else selectedCheckbox remains unchanged.

Parameters:
checkbox - a CheckboxGadget to be added to this CheckboxGadgetGroup.
 o remove
 protected void remove(CheckboxGadget checkbox)
Removes the given CheckboxGadget from the checkboxes vector. If the CheckboxGadget to be removed is the selected one, then the selected one is set to the first element of the checkboxes vector, if the vector has any elements. If it is empty, then selectedCheckbox becomes null.

Parameters:
checkbox - a CheckboxGadget to be removed from this CheckboxGadgetGroup.
 o getSelectedCheckbox
 public CheckboxGadget getSelectedCheckbox()
Gets the selectedCheckbox.

Returns:
CheckboxGadget
 o setSelectedCheckbox
 public void setSelectedCheckbox(CheckboxGadget checkbox)
If the given CheckboxGadget is in the checkboxes vecter, then selectedCheckbox is set to it.

Parameters:
checkbox - new value for selectedCheckbox

All Packages  Class Hierarchy  This Package  Previous  Next  Index