|
NextApp Echo2 Extras v2.1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectComponent
nextapp.echo2.extras.app.menu.AbstractMenuComponent
public abstract class AbstractMenuComponent
| Field Summary | |
|---|---|
static java.lang.String |
INPUT_SELECT
|
static java.lang.String |
MODEL_CHANGED_PROPERTY
|
static java.lang.String |
STATE_MODEL_CHANGED_PROPERTY
|
| Constructor Summary | |
|---|---|
AbstractMenuComponent(MenuModel model,
MenuStateModel stateModel)
Creates a new AbstractMenuComponent displaying the specified
MenuModel and using the specified
MenuStateModel to provide state information. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener l)
Adds an ActionListener to be notified when a menu item
is selected. |
void |
doAction(OptionModel optionModel)
Programmatically performs a menu action. |
MenuModel |
getModel()
Returns the model |
MenuStateModel |
getStateModel()
Returns the selection model |
void |
processInput(java.lang.String name,
java.lang.Object value)
|
void |
removeActionListener(ActionListener l)
Removes an ActionListener from being notified when a menu
item is selected. |
void |
setModel(MenuModel newValue)
Sets the model. |
void |
setStateModel(MenuStateModel newValue)
Sets the selection model. |
| 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 INPUT_SELECT
public static final java.lang.String MODEL_CHANGED_PROPERTY
public static final java.lang.String STATE_MODEL_CHANGED_PROPERTY
| Constructor Detail |
|---|
public AbstractMenuComponent(MenuModel model,
MenuStateModel stateModel)
AbstractMenuComponent displaying the specified
MenuModel and using the specified
MenuStateModel to provide state information.
model - the modelstateModel - the selection model| Method Detail |
|---|
public void addActionListener(ActionListener l)
ActionListener to be notified when a menu item
is selected.
l - the listener to addpublic void doAction(OptionModel optionModel)
optionModel - the OptionModel whose action is to be
invokedpublic MenuModel getModel()
public MenuStateModel getStateModel()
public void processInput(java.lang.String name,
java.lang.Object value)
nextapp.echo2.app.Component#processInput(java.lang.String, java.lang.Object)public void removeActionListener(ActionListener l)
ActionListener from being notified when a menu
item is selected.
l - the listener to removepublic void setModel(MenuModel newValue)
newValue - the new modelpublic void setStateModel(MenuStateModel newValue)
newValue - the new selection model
|
NextApp Echo2 Extras v2.1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||