Class CheckBoxGroup
- Superclasses :
-
lang::Object
- Package :
- gui
This class is simply a container for several objects
which then act together as ``radio buttons''. The objects
should be subclasses of Toggle, but are normally checkboxes.
The set/unset status of objects in a CheckBoxGroup should be set
with the set_which_one method, not by setting the individual items
directly with their own methods; that would result in confusion.
NB - the objects in the group must be added to both the CheckBoxGroup
and the dialog box too; a CheckBoxGroup is not a Container.
- Source
add(c)
-
Add the object to the CheckBoxGroup.
- Parameters :
- c - The object to add, which must be a subclass of Toggle.
- Source
get_by_flag()
-
Returns an integer in the range 1, 2, 4, 8 ... depending
upon whether the first, second, third etc object is down.
- Source
get_which_one()
-
Returns the object is currently down.
- Source
initially()
-
set_by_flag(i)
-
Set the object which is down according to the integer i.
If i = 1 then the first object is down, if i = 2 the
second is down, etc for i = 4, 8, 16.
- Source
set_which_one(x)
-
Set which CheckBox which is down.
- Parameters :
- x - The object which is down.
- Source
checkboxes
-
which_one
-