java.awt
Class CheckboxGroup

java.lang.Object
  extended by java.awt.CheckboxGroup
All Implemented Interfaces:
Serializable

public class CheckboxGroup
extends Object
implements Serializable

This class if for combining checkboxes into groups so that only one checkbox in the group can be selected at any one time.

See Also:
Serialized Form

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.
 String toString()
          Returns a string representation of this checkbox group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckboxGroup

public CheckboxGroup()
Initializes a new instance of CheckboxGroup.

Method Detail

getSelectedCheckbox

public Checkbox getSelectedCheckbox()
Returns the currently selected checkbox, or null if none of the checkboxes in this group are selected.

Returns:
The selected checkbox.

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.

Returns:
The selected checkbox.

setSelectedCheckbox

public void setSelectedCheckbox(Checkbox selectedCheckbox)
This method sets the specified checkbox to be the selected on in this group, and unsets all others.

Parameters:
selectedCheckbox - The new selected checkbox.

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.

Parameters:
selectedCheckbox - The new selected checkbox.

toString

public String toString()
Returns a string representation of this checkbox group.

Overrides:
toString in class Object
Returns:
A string representation of this checkbox group.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)