|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbuoy.event.EventSource
buoy.widget.RadioButtonGroup
public class RadioButtonGroup
A RadioButtonGroup manages a set of BRadioButtons
and
BRadioButtonMenuItems
. It ensures that only
one member of the group is selected at any time. It provides methods for determining which member
is currently selected, and for changing the selection.
RadioButtonGroup extends EventSource
. It generates a
SelectionChangedEvent
whenever the user changes the selected radio button. Therefore, you can simply add an event
link to a RadioButtonGroup, rather than adding one to each radio button independently.
Constructor Summary | |
---|---|
RadioButtonGroup()
Create a new RadioButtonGroup. |
Method Summary | |
---|---|
java.lang.Object |
getRadioButton(int i)
Get the i'th radio button in this group. |
int |
getRadioButtonCount()
Get the number of members in this group. |
java.util.Iterator |
getRadioButtons()
Get an Iterator listing all members of the group. |
java.lang.Object |
getSelection()
Get the currently selected radio button, or null if none is selected. |
void |
setSelection(java.lang.Object sel)
Select a particular radio button, and deselect all others in the group. |
Methods inherited from class buoy.event.EventSource |
---|
addEventLink, addEventLink, addEventLink, dispatchEvent, removeEventLink |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RadioButtonGroup()
Method Detail |
---|
public java.lang.Object getSelection()
public void setSelection(java.lang.Object sel)
public java.util.Iterator getRadioButtons()
public int getRadioButtonCount()
public java.lang.Object getRadioButton(int i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |