public class ButtonGroup extends java.lang.Object implements RenderIdSupport, java.io.Serializable
| Constructor and Description |
|---|
ButtonGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
addButton(RadioButton radioButton)
Adds a
RadioButton to the group. |
RadioButton[] |
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(RadioButton radioButton)
Removes a
RadioButton from the group. |
void |
updateSelection(RadioButton changedButton)
Notifies the
ButtonGroup that a RadioButton
within its domain may have changed state. |
public void addButton(RadioButton 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 addRadioButton.setGroup(ButtonGroup)public RadioButton[] 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(RadioButton 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 removeRadioButton.setGroup(ButtonGroup)public void updateSelection(RadioButton changedButton)
ButtonGroup that a RadioButton
within its domain may have changed state.changedButton - the changed RadioButton