|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--brf.j2me.dynaworks.ui.RadioGroup
RadioGroups contain two or more radio buttons. Only one RadioButton can be selected at any time.
RadioButton| Field Summary | |
private java.util.Vector |
buttonList
list of associated RadioButtons. |
private RadioButton |
selected
index of active radio button. |
| Constructor Summary | |
RadioGroup()
constructor. |
|
| Method Summary | |
boolean |
add(RadioButton button)
add a radio button to the group. |
RadioButton |
buttonAt(int idx)
get the radio button at a specific position in the list. |
void |
dispose()
clean-up. |
RadioButton |
getSelected()
get the currently active radio button. |
ActionEvent |
handleSelection(RadioButton button)
handle the user-invoked selection of a radio button under control. |
void |
setSelected(RadioButton button)
set the selected radio button. |
int |
size()
get the number of radio buttons in this group. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.util.Vector buttonList
private RadioButton selected
| Constructor Detail |
public RadioGroup()
| Method Detail |
public boolean add(RadioButton button)
button - RadioButton - control to be added.RadioButtonpublic int size()
public RadioButton getSelected()
RadioButtonpublic void setSelected(RadioButton button)
button - RadioButton - radio button to be activated.RadioButtonpublic RadioButton buttonAt(int idx)
idx - int - index of requested radio button.RadioButtonpublic ActionEvent handleSelection(RadioButton button)
button - RadioButton - radio button that is invoked by the user.RadioButton,
ActionEventpublic void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||