java.awt
Class CheckboxGroup
java.lang.Object
|
+--java.awt.CheckboxGroup
- All Implemented Interfaces:
- Serializable
- public class CheckboxGroup
- extends Object
- implements Serializable
Unsafe:
- See Also:
- Serialized Form
Field Summary
Constructor Summary
CheckboxGroup()
Suppressed: Creates a new instance of
CheckboxGroup.
Method Summary
Checkbox
getCurrent()
Suppressed: @deprecated As of JDK version 1.1,
replaced by
getSelectedCheckbox().
void
setCurrent(Checkbox box)
Suppressed: @deprecated As of JDK version 1.1,
replaced by
setSelectedCheckbox(Checkbox).
String
toString()
Suppressed: Returns a string representation of this check box group,
including the value of its current selection.
Methods inherited from class java.lang.Object
Field Detail
selectedCheckbox
Checkbox selectedCheckbox
- The current choice.
- See Also:
getCurrent(),
setCurrent()
serialVersionUID
private static final long serialVersionUID
Constructor Detail
CheckboxGroup
public CheckboxGroup()
- Suppressed: Creates a new instance of
CheckboxGroup.
Method Detail
getSelectedCheckbox
public Checkbox getSelectedCheckbox()
- Suppressed: Gets the current choice from this check box group.
The current choice is the check box in this
group that is currently in the "on" state,
or
null if all check boxes in the
group are off.
-
- Returns:
- the check box that is currently in the
"on" state, or
null. - Since:
- JDK1.1
- See Also:
java.awt.Checkbox,
java.awt.CheckboxGroup#setSelectedCheckbox
getCurrent
public Checkbox getCurrent()
- Suppressed: @deprecated As of JDK version 1.1,
replaced by
getSelectedCheckbox().
-
-
setSelectedCheckbox
public void setSelectedCheckbox(Checkbox box)
- Suppressed: Sets the currently selected check box in this group
to be the specified check box.
This method sets the state of that check box to "on" and
sets all other check boxes in the group to be off.
If the check box argument is null, all check boxes
in this check box group are deselected. If the check box argument
belongs to a different check box group, this method does
nothing.
-
- Parameters:
box - the Checkbox to set as the
current selection.- Since:
- JDK1.1
- See Also:
java.awt.Checkbox,
java.awt.CheckboxGroup#getSelectedCheckbox
setCurrent
public void setCurrent(Checkbox box)
- Suppressed: @deprecated As of JDK version 1.1,
replaced by
setSelectedCheckbox(Checkbox).
-
-
toString
public String toString()
- Suppressed: Returns a string representation of this check box group,
including the value of its current selection.
- Overrides:
toString in class Object
- Returns:
- a string representation of this check box group.