|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.CheckboxGroup
public class CheckboxGroup
This class if for combining checkboxes into groups so that only one checkbox in the group can be selected at any one time.
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 |
---|
public CheckboxGroup()
CheckboxGroup
.
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |