|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.app.Component
nextapp.echo.app.button.AbstractButton
nextapp.echo.app.button.ToggleButton
nextapp.echo.app.RadioButton
public class RadioButton
RadioButton component: a toggle button which allows a user to select one option from a group of options. Radio
buttons should be assigned to a unique application-specific ButtonGroup (by setting the group
property). Only one radio button in a group will be selected at a given time. This component does not allow child components.
| Field Summary | |
|---|---|
static java.lang.String |
BUTTON_GROUP_CHANGED_PROPERTY
|
| Constructor Summary | |
|---|---|
RadioButton()
Creates a radio button with no text or icon. |
|
RadioButton(ImageReference icon)
Creates a radio button with an icon. |
|
RadioButton(java.lang.String text)
Creates a radio button with text. |
|
RadioButton(java.lang.String text,
ImageReference icon)
Creates a radio button with text and an icon. |
|
| Method Summary | |
|---|---|
ButtonGroup |
getGroup()
Retrieves the ButtonGroup to which this
RadioButton belongs. |
void |
setGroup(ButtonGroup newValue)
Sets the ButtonGroup to which this
RadioButton belongs. |
void |
setModel(ButtonModel newValue)
Sets the model that this button represents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BUTTON_GROUP_CHANGED_PROPERTY
| Constructor Detail |
|---|
public RadioButton()
public RadioButton(java.lang.String text)
text - the text to be displayed in the radio buttonpublic RadioButton(ImageReference icon)
icon - the icon to be displayed in the radio button
public RadioButton(java.lang.String text,
ImageReference icon)
text - the text to be displayed in the radio buttonicon - the icon to be displayed in the radio button| Method Detail |
|---|
public ButtonGroup getGroup()
ButtonGroup to which this
RadioButton belongs.
Only one radio button in a group may be selected at a time.
public void setGroup(ButtonGroup newValue)
ButtonGroup to which this
RadioButton belongs.
Only one radio button in a group may be selected at a time.
newValue - the new button grouppublic void setModel(ButtonModel newValue)
AbstractButton
setModel in class ToggleButtonnewValue - the new ButtonModelAbstractButton.setModel(nextapp.echo.app.button.ButtonModel)
|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||