|
NextApp Echo2 Extras v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MenuStateModel
Representation of the state of a MenuModel
s, describing the
selected and enabled states of all options.
Method Summary | |
---|---|
void |
addChangeListener(nextapp.echo2.app.event.ChangeListener l)
Registers a ChangeListener to be notified when the selection
or enabled state of menu items change. |
boolean |
isEnabled(java.lang.String id)
Determines if a specific menu option is enabled. |
boolean |
isSelected(java.lang.String id)
Determines if a specific menu option is selected. |
void |
removeChangeListener(nextapp.echo2.app.event.ChangeListener l)
Unregisters a ChangeListener from being notified when
the selection or enabled state of menu items change. |
void |
setEnabled(java.lang.String id,
boolean enabled)
Sets the enabled state of a specific menu option. |
void |
setSelected(java.lang.String id,
boolean selected)
Sets the selection state of a specific menu option. |
Method Detail |
---|
void addChangeListener(nextapp.echo2.app.event.ChangeListener l)
ChangeListener
to be notified when the selection
or enabled state of menu items change.
l
- the listener to addboolean isEnabled(java.lang.String id)
id
- the id of the menu option
boolean isSelected(java.lang.String id)
id
- the id of the menu option
void removeChangeListener(nextapp.echo2.app.event.ChangeListener l)
ChangeListener
from being notified when
the selection or enabled state of menu items change.
l
- the listener to removevoid setEnabled(java.lang.String id, boolean enabled)
id
- the id of the menu optionenabled
- the new enabled statevoid setSelected(java.lang.String id, boolean selected)
id
- the id of the menu optionselected
- the new selection state
|
NextApp Echo2 Extras v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |