nextapp.echo
Class RadioButton

java.lang.Object
  extended by nextapp.echo.AbstractComponent
      extended by nextapp.echo.AbstractButton
          extended by nextapp.echo.ToggleButton
              extended by nextapp.echo.RadioButton
All Implemented Interfaces:
java.io.Serializable, Component, ToolTipSupport

public class RadioButton
extends ToggleButton

A selectable button that allows selection of one option within a group.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo.ToggleButton
ToggleButton.ToggleButtonModel
 
Field Summary
 
Fields inherited from class nextapp.echo.ToggleButton
HORIZONTAL_STATE_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_STATE_POSITION_CHANGED_PROPERTY, STATE_MARGIN_CHANGED_PROPERTY, STYLE_HORIZONTAL_STATE_ALIGNMENT, STYLE_HORIZONTAL_STATE_POSITION, STYLE_STATE_MARGIN, STYLE_VERTICAL_STATE_ALIGNMENT, STYLE_VERTICAL_STATE_POSITION, VERTICAL_STATE_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_STATE_POSITION_CHANGED_PROPERTY
 
Fields inherited from class nextapp.echo.AbstractButton
ACTION_COMMAND_CHANGED_PROPERTY, CSS_CLASS_CHANGED_PROPERTY, DISABLED_CSS_CLASS_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, ICON_TEXT_MARGIN_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, NOTABSTOP_CHANGED_PROPERTY, ROLLOVER_BACKGROUND_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_FONT_CHANGED_PROPERTY, ROLLOVER_FOREGROUND_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_HORIZONTAL_TEXT_POSITION, STYLE_ICON_TEXT_MARGIN, STYLE_ROLLOVER_BACKGROUND, STYLE_ROLLOVER_ENABLED, STYLE_ROLLOVER_FONT, STYLE_ROLLOVER_FOREGROUND, STYLE_VERTICAL_ALIGNMENT, STYLE_VERTICAL_TEXT_POSITION, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
 
Fields inherited from interface nextapp.echo.ToolTipSupport
TOOL_TIP_TEXT_CHANGED_PROPERTY
 
Fields inherited from interface nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, SELECTABLE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
RadioButton()
          Creates an initially unselected radio button with no text or image.
RadioButton(ImageReference icon)
          Creates a initially unselected radio button with the specified icon.
RadioButton(ImageReference icon, boolean selected)
          Creates a radio button with the specified icon and selection state.
RadioButton(java.lang.String text)
          Creates an initially unselected radio button with the specified text.
RadioButton(java.lang.String text, boolean selected)
          Creates a radio button with the specified text and selection state.
RadioButton(java.lang.String text, ImageReference icon, boolean selected)
          Creates a radio button with the specified text, icon and selection state.
 
Method Summary
 
Methods inherited from class nextapp.echo.ToggleButton
applyStyle, getHorizontalStateAlignment, getHorizontalStatePosition, getStateMargin, getVerticalStateAlignment, getVerticalStatePosition, setHorizontalStateAlignment, setHorizontalStatePosition, setStateMargin, setVerticalStateAlignment, setVerticalStatePosition
 
Methods inherited from class nextapp.echo.AbstractButton
addActionListener, addChangeListener, addItemListener, doAction, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getCssClass, getCssClassDisabled, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextMargin, getModel, getRolloverBackground, getRolloverFont, getRolloverForeground, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getText, getToolTipText, getVerticalAlignment, getVerticalTextPosition, hasActionListeners, isAsync, isNoTabStop, isRolloverEnabled, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setAsync, setCssClass, setCssClassDisabled, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextMargin, setModel, setNoTabStop, setRolloverBackground, setRolloverEnabled, setRolloverFont, setRolloverForeground, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setToolTipText, setVerticalAlignment, setVerticalTextPosition
 
Methods inherited from class nextapp.echo.AbstractComponent
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getClientId, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getListenerList, getLocale, getParent, indexOf, init, isAncestorOf, isDifferent, isEnabled, isFocused, isRecursivelyVisible, isRegistered, isSelectableForScriptRecorder, isShowing, isVisible, processHierarchyEvent, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setClientId, setEnabled, setFocused, setFont, setForeground, setIdentifier, setLocale, setParent, setRegistered, setSelectableForScriptRecorder, setVisible, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioButton

public RadioButton()
Creates an initially unselected radio button with no text or image.


RadioButton

public RadioButton(java.lang.String text)
Creates an initially unselected radio button with the specified text.

Parameters:
text - The text to be displayed in the button.

RadioButton

public RadioButton(java.lang.String text,
                   boolean selected)
Creates a radio button with the specified text and selection state.

Parameters:
text - The text to be displayed in the button.
selected - The initial selection state of the button.

RadioButton

public RadioButton(ImageReference icon)
Creates a initially unselected radio button with the specified icon.

Parameters:
icon - The icon to be displayed in the button.

RadioButton

public RadioButton(ImageReference icon,
                   boolean selected)
Creates a radio button with the specified icon and selection state.

Parameters:
icon - The icon to be displayed in the button.
selected - The initial selection state of the button.

RadioButton

public RadioButton(java.lang.String text,
                   ImageReference icon,
                   boolean selected)
Creates a radio button with the specified text, icon and selection state.

Parameters:
text - The text to be displayed in the button.
icon - The icon to be displayed in the button.
selected - The initial selection state of the button.