public class CheckboxGroup extends BooleanStateGroup
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.
CheckboxGroup,
直列化された形式selectedBooleanState| コンストラクタと説明 |
|---|
CheckboxGroup()
Creates a new instance of
CheckboxGroup. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Checkbox |
getCurrent()
非推奨です。
As of JDK version 1.1.
|
Checkbox |
getSelectedCheckbox()
Gets the current choice from this check box group.
|
void |
setCurrent(Checkbox box)
非推奨です。
As of JDK version 1.1.
|
void |
setSelectedCheckbox(Checkbox box)
Sets the currently selected check box in this group to be the
specified check box.
|
getSelectedBooleanState, setSelectedBooleanStatepublic Checkbox getSelectedCheckbox()
null if all check boxes in the group
are off.null.public void setSelectedCheckbox(Checkbox box)
If the check box argument is null or belongs to a
different check box group, then this method does nothing.
box - the Checkbox to set as the current selection.public Checkbox getCurrent()
public void setCurrent(Checkbox box)