java.awt
Class CheckboxGroup

java.lang.Object
java.awt.CheckboxGroup
- All Implemented Interfaces:
- java.io.Serializable
- public class CheckboxGroup
- extends java.lang.Object
- implements java.io.Serializable
This class if for combining checkboxes into groups so that only
one checkbox in the group can be selected at any one time.
|
Constructor Summary |
CheckboxGroup()
Initializes a new instance of CheckboxGroup. |
|
Method Summary |
Checkbox |
getCurrent()
Deprecated. This method is deprecated in favor of
getSelectedCheckbox(). |
Checkbox |
getSelectedCheckbox()
Returns the currently selected checkbox, or null if none
of the checkboxes in this group are selected. |
void |
setCurrent(Checkbox selectedCheckbox)
Deprecated. This method is deprecated in favor of
setSelectedCheckbox(). |
void |
setSelectedCheckbox(Checkbox selectedCheckbox)
This method sets the specified checkbox to be the selected on in this
group, and unsets all others. |
java.lang.String |
toString()
Returns a string representation of this checkbox group. |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
selectedCheckbox
private Checkbox selectedCheckbox
CheckboxGroup
public CheckboxGroup()
- Initializes a new instance of
CheckboxGroup.
getSelectedCheckbox
public Checkbox getSelectedCheckbox()
- Returns the currently selected checkbox, or
null if none
of the checkboxes in this group are selected.
getCurrent
public Checkbox getCurrent()
- Deprecated. This method is deprecated in favor of
getSelectedCheckbox().
- Returns the currently selected checkbox, or
null if none
of the checkboxes in this group are selected.
setSelectedCheckbox
public void setSelectedCheckbox(Checkbox selectedCheckbox)
- This method sets the specified checkbox to be the selected on in this
group, and unsets all others.
setCurrent
public void setCurrent(Checkbox selectedCheckbox)
- Deprecated. This method is deprecated in favor of
setSelectedCheckbox().
- This method sets the specified checkbox to be the selected on in this
group, and unsets all others.
toString
public java.lang.String toString()
- Returns a string representation of this checkbox group.