Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt
Class CheckboxGroup  view CheckboxGroup download CheckboxGroup.java

java.lang.Object
  extended byjava.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.


Field Summary
private  Checkbox selectedCheckbox
           
private static long serialVersionUID
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

selectedCheckbox

private Checkbox selectedCheckbox
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.


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.