All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.CheckboxGroup
java.lang.Object
|
+----jp.kyasu.awt.BooleanStateGroup
|
+----jp.kyasu.awt.CheckboxGroup
- public class CheckboxGroup
- extends BooleanStateGroup
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.
- Version:
- 15 Aug 1997
- Author:
- Kazuki YASUMATSU
- See Also:
- CheckboxGroup
-
CheckboxGroup()
- Creates a new instance of
CheckboxGroup
.
-
getCurrent()
-
Deprecated.
-
getSelectedCheckbox()
- Gets the current choice from this check box group.
-
setCurrent(Checkbox)
-
Deprecated.
-
setSelectedCheckbox(Checkbox)
- Sets the currently selected check box in this group to be the
specified check box.
CheckboxGroup
public CheckboxGroup()
- Creates a new instance of
CheckboxGroup
.
getSelectedCheckbox
public Checkbox getSelectedCheckbox()
- Gets the current choice from this check box group. The current
choice is the check box in this group that is currently in the
"on" state, or
null
if all check boxes in the group
are off.
- Returns:
- the check box that is currently in the "on" state, or
null
.
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
or belongs to a
different check box group, then this method does nothing.
- Parameters:
- box - the
Checkbox
to set as the current selection.
getCurrent
public Checkbox getCurrent()
- Note: getCurrent() is deprecated.
As of JDK version 1.1.
setCurrent
public void setCurrent(Checkbox box)
- Note: setCurrent() is deprecated.
As of JDK version 1.1.
All Packages Class Hierarchy This Package Previous Next Index