Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Class CheckboxGroup

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

Authors:

Constructor Summary

CheckboxGroup()

Initializes a new instance of CheckboxGroup.

Method Summary

java.awt.CheckboxgetCurrent()

Returns the currently selected checkbox, or null if none of the checkboxes in this group are selected.
java.awt.CheckboxgetSelectedCheckbox()

Returns the currently selected checkbox, or null if none of the checkboxes in this group are selected.
voidsetCurrent(java.awt.Checkbox selectedCheckbox)

This method sets the specified checkbox to be the selected on in this group, and unsets all others.
voidsetSelectedCheckbox(java.awt.Checkbox selectedCheckbox)

This method sets the specified checkbox to be the selected on in this group, and unsets all others.
java.lang.StringtoString()

Returns a string representation of this checkbox group.

Constructor Details

CheckboxGroup

public CheckboxGroup()

Initializes a new instance of CheckboxGroup.


Method Details

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: