java.awt
public class CheckboxGroup extends Object implements Serializable
Constructor and Description |
---|
CheckboxGroup()
Initializes a new instance of
CheckboxGroup . |
Modifier and Type | Method and Description |
---|---|
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.
|
public CheckboxGroup()
CheckboxGroup
.public Checkbox getSelectedCheckbox()
null
if none
of the checkboxes in this group are selected.public Checkbox getCurrent()
getSelectedCheckbox()
.null
if none
of the checkboxes in this group are selected.public void setSelectedCheckbox(Checkbox selectedCheckbox)
selectedCheckbox
- The new selected checkbox.public void setCurrent(Checkbox selectedCheckbox)
setSelectedCheckbox()
.selectedCheckbox
- The new selected checkbox.public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)