|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.karora.cooee.app.button.ButtonGroup
public class ButtonGroup
A collection of radio buttons which allows the selection of only one radio button at a time.
| Constructor Summary | |
|---|---|
ButtonGroup()
|
|
| Method Summary | |
|---|---|
void |
addButton(ToggleButton radioButton)
Adds a RadioButton to the group. |
ToggleButton[] |
getButtons()
Returns all RadioButtons in the group. |
java.lang.String |
getRenderId()
Returns an identifier that is unique within the ApplicationInstance with which the implementor will be
used. |
void |
removeButton(ToggleButton radioButton)
Removes a RadioButton from the group. |
void |
updateSelection(ToggleButton changedButton)
Notifies the ButtonGroup that a RadioButton
within its domain may have changed state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ButtonGroup()
| Method Detail |
|---|
public void addButton(ToggleButton radioButton)
RadioButton to the group.
Applications should use RadioButton.setGroup() to add
buttons from a group rather than invoking this method.
radioButton - the RadioButton to addToggleButton.setGroup(ButtonGroup)public ToggleButton[] getButtons()
RadioButtons in the group.
RadioButtonpublic java.lang.String getRenderId()
RenderIdSupportApplicationInstance with which the implementor will be
used.
getRenderId in interface RenderIdSupportRenderIdSupport.getRenderId()public void removeButton(ToggleButton radioButton)
RadioButton from the group.
Applications should use RadioButton.setGroup() to remove
buttons from a group rather than invoking this method.
radioButton - the RadioButton to removeToggleButton.setGroup(ButtonGroup)public void updateSelection(ToggleButton changedButton)
ButtonGroup that a RadioButton
within its domain may have changed state.
changedButton - the changed RadioButton
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||