All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.CheckboxGroup
java.lang.Object
|
+----java.awt.CheckboxGroup
- public class CheckboxGroup
- extends Object
- implements Serializable
This class is used to create a multiple-exclusion scope for a set
of Checkbox buttons. For example, creating a set of Checkbox buttons
with the same CheckboxGroup object means that only one of those Checkbox
buttons will be allowed to be "on" at a time.
-
CheckboxGroup()
- Creates a new CheckboxGroup.
-
getCurrent()
-
Deprecated.
-
getSelectedCheckbox()
- Gets the current choice.
-
setCurrent(Checkbox)
-
Deprecated.
-
setSelectedCheckbox(Checkbox)
- Sets the current choice to the specified Checkbox.
-
toString()
- Returns the String representation of this CheckboxGroup's values.
CheckboxGroup
public CheckboxGroup()
- Creates a new CheckboxGroup.
getSelectedCheckbox
public Checkbox getSelectedCheckbox()
- Gets the current choice.
getCurrent
public Checkbox getCurrent()
- Note: getCurrent() is deprecated.
As of JDK version 1.1,
replaced by getSelectedCheckbox().
setSelectedCheckbox
public synchronized void setSelectedCheckbox(Checkbox box)
- Sets the current choice to the specified Checkbox.
If the Checkbox belongs to a different group, just return.
- Parameters:
- box - the current Checkbox choice
setCurrent
public synchronized void setCurrent(Checkbox box)
- Note: setCurrent() is deprecated.
As of JDK version 1.1,
replaced by setSelectedCheckbox(Checkbox).
toString
public String toString()
- Returns the String representation of this CheckboxGroup's values.
Convert to String.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature