java.awt
Class CheckboxGroup
java.lang.Object
|
+--java.awt.CheckboxGroup
All Implemented Interfaces:
Serializable
This class if for combining checkboxes into groups so that only
one checkbox in the group can be selected at any one time.
Authors:- Aaron M. Renn (arenn@urbanophile.com)
- Tom Tromey <tromey@redhat.com>
CheckboxGroup
public CheckboxGroup()
Initializes a new instance of CheckboxGroup
.
getCurrent
public Checkbox getCurrent()
Returns the currently selected checkbox, or null
if none
of the checkboxes in this group are selected.
Returns:
getSelectedCheckbox
public Checkbox getSelectedCheckbox()
Returns the currently selected checkbox, or null
if none
of the checkboxes in this group are selected.
Returns:
setCurrent
public void setCurrent(java.awt.Checkbox selectedCheckbox)
This method sets the specified checkbox to be the selected on in this
group, and unsets all others.
Parameters:
setSelectedCheckbox
public void setSelectedCheckbox(java.awt.Checkbox selectedCheckbox)
This method sets the specified checkbox to be the selected on in this
group, and unsets all others.
Parameters:
toString
public String toString()
Returns a string representation of this checkbox group.
Returns:
- A string representation of this checkbox group.