|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javax.swing.ButtonGroup
Safe:
| Field Summary | |
protected Vector |
buttons
|
(package private) ButtonModel |
selection
The current selection. |
| Constructor Summary | |
ButtonGroup()
Enabled: Creates a new ButtonGroup. |
|
| Method Summary | |
void |
add(AbstractButton b)
Enabled: Adds the button to the group. |
int |
getButtonCount()
Enabled: Returns the number of buttons in the group. |
Enumeration |
getElements()
Enabled: Returns all the buttons that are participating in this group. |
ButtonModel |
getSelection()
Enabled: Returns the model of the selected button. |
boolean |
isSelected(ButtonModel m)
Enabled: Returns whether a ButtonModel is selected. |
void |
remove(AbstractButton b)
Enabled: Removes the button from the group. |
void |
setSelected(ButtonModel m,
boolean b)
Enabled: Sets the selected value for the ButtonModel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Vector buttons
ButtonModel selection
| Constructor Detail |
public ButtonGroup()
ButtonGroup.
| Method Detail |
public void add(AbstractButton b)
b - the button to be addedpublic void remove(AbstractButton b)
b - the button to be removedpublic Enumeration getElements()
Enumeration of the buttons in this grouppublic ButtonModel getSelection()
public void setSelected(ButtonModel m,
boolean b)
ButtonModel.
Only one button in the group may be selected at a time.
public boolean isSelected(ButtonModel m)
ButtonModel is selected.
true if the button is selected,
otherwise returns falsepublic int getButtonCount()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||