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.
-
CheckboxGadgetGroup()
-
-
add(CheckboxGadget)
- Adds the given CheckboxGadget to the checkboxes vector.
-
getSelectedCheckbox()
- Gets the selectedCheckbox.
-
remove(CheckboxGadget)
- Removes the given CheckboxGadget from the checkboxes vector.
-
setSelectedCheckbox(CheckboxGadget)
- If the given CheckboxGadget is in the checkboxes vecter,
then selectedCheckbox is set to it.
CheckboxGadgetGroup
public CheckboxGadgetGroup()
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.
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.
getSelectedCheckbox
public CheckboxGadget getSelectedCheckbox()
- Gets the selectedCheckbox.
- Returns:
- CheckboxGadget
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