|
NextApp Echo2 Extras v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo2.extras.app.menu.DefaultOptionModel
public class DefaultOptionModel
A default OptionModel
implementation.
Constructor Summary | |
---|---|
DefaultOptionModel(java.lang.String id,
java.lang.String text,
nextapp.echo2.app.ImageReference icon)
Creates a new DefaultOptionModel . |
Method Summary | |
---|---|
nextapp.echo2.app.ImageReference |
getIcon()
Returns the icon of this menu option. |
java.lang.String |
getId()
Returns the id of the OptionModel . |
java.lang.String |
getText()
Returns the text of this menu option. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultOptionModel(java.lang.String id, java.lang.String text, nextapp.echo2.app.ImageReference icon)
DefaultOptionModel
.
id
- the item idtext
- the item texticon
- the item iconMethod Detail |
---|
public nextapp.echo2.app.ImageReference getIcon()
OptionModel
ToggleOptionModel
s.
getIcon
in interface OptionModel
OptionModel.getIcon()
public java.lang.String getId()
ItemModel
OptionModel
.
The id will be used as the actionCommand
of
ActionEvent
s fired by a menu when the option
is selected.
getId
in interface ItemModel
ItemModel.getId()
public java.lang.String getText()
OptionModel
getText
in interface OptionModel
OptionModel.getText()
|
NextApp Echo2 Extras v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |