NextApp Echo3 Extras
v3.0.b4

nextapp.echo.extras.app.menu
Class DefaultRadioOptionModel

java.lang.Object
  extended by nextapp.echo.extras.app.menu.DefaultOptionModel
      extended by nextapp.echo.extras.app.menu.DefaultToggleOptionModel
          extended by nextapp.echo.extras.app.menu.DefaultRadioOptionModel
All Implemented Interfaces:
java.io.Serializable, ItemModel, OptionModel, RadioOptionModel, ToggleOptionModel

public class DefaultRadioOptionModel
extends DefaultToggleOptionModel
implements RadioOptionModel

Default RadioOptionModel implementation.

See Also:
Serialized Form

Constructor Summary
DefaultRadioOptionModel(java.lang.String id, java.lang.String groupId, java.lang.String text)
          Creates a new DefaultOptionModel.
 
Method Summary
 java.lang.String getGroupId()
          Returns a group identifier assocciated with this RadioButtonOptionModel.
 
Methods inherited from class nextapp.echo.extras.app.menu.DefaultOptionModel
getIcon, getId, getText, setIcon, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echo.extras.app.menu.OptionModel
getIcon, getText
 
Methods inherited from interface nextapp.echo.extras.app.menu.ItemModel
getId
 

Constructor Detail

DefaultRadioOptionModel

public DefaultRadioOptionModel(java.lang.String id,
                               java.lang.String groupId,
                               java.lang.String text)
Creates a new DefaultOptionModel.

Parameters:
id - the id of the OptionModel; the id will be used as the actionCommand of ActionEvents fired by a menu when the option is selected
groupId - the radio group identifier
text - the item text
Method Detail

getGroupId

public java.lang.String getGroupId()
Description copied from interface: RadioOptionModel
Returns a group identifier assocciated with this RadioButtonOptionModel. When multiple RadioButtonOptionModels have the same groupId, only one may be selected at a time.

Specified by:
getGroupId in interface RadioOptionModel
Returns:
the group identifier
See Also:
RadioOptionModel.getGroupId()

NextApp Echo3 Extras
v3.0.b4