|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.button.AbstractButton
nextapp.echo2.app.button.ToggleButton
nextapp.echo2.app.RadioButton
public class RadioButton
A radio button implementation.
| Field Summary | |
|---|---|
static java.lang.String |
BUTTON_GROUP_CHANGED_PROPERTY
|
| Fields inherited from class nextapp.echo2.app.button.ToggleButton |
|---|
PROPERTY_PRESSED_SELECTED_STATE_ICON, PROPERTY_PRESSED_STATE_ICON, PROPERTY_ROLLOVER_SELECTED_STATE_ICON, PROPERTY_ROLLOVER_STATE_ICON, PROPERTY_SELECTED_STATE_ICON, PROPERTY_STATE_ALIGNMENT, PROPERTY_STATE_ICON, PROPERTY_STATE_MARGIN, PROPERTY_STATE_POSITION, SELECTED_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.echo2.app.button.ButtonModel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||