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.


Constructor Index

 o CheckboxGroup()
Creates a new CheckboxGroup.

Method Index

 o getCurrent()
Deprecated.
 o getSelectedCheckbox()
Gets the current choice.
 o setCurrent(Checkbox)
Deprecated.
 o setSelectedCheckbox(Checkbox)
Sets the current choice to the specified Checkbox.
 o toString()
Returns the String representation of this CheckboxGroup's values.

Constructors

 o CheckboxGroup
    method CheckboxGroup() public 
Creates a new CheckboxGroup.

Methods

 o getSelectedCheckbox
    method getSelectedCheckbox() returns Checkbox public     
Gets the current choice.

 o getCurrent
    method getCurrent() returns Checkbox public     
Note: getCurrent() is deprecated. As of JDK version 1.1, replaced by getSelectedCheckbox().

 o setSelectedCheckbox
    method setSelectedCheckbox(box=Checkbox)  public    protect 
Sets the current choice to the specified Checkbox. If the Checkbox belongs to a different group, just return.

Parameters:
box - the current Checkbox choice
 o setCurrent
    method setCurrent(box=Checkbox)  public    protect 
Note: setCurrent() is deprecated. As of JDK version 1.1, replaced by setSelectedCheckbox(Checkbox).

 o toString
    method toString() returns String public     
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