|
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.app.Component 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
|
Fields inherited from class nextapp.echo2.app.Component |
---|
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_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(nextapp.echo2.app.event.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(nextapp.echo2.app.event.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 nextapp.echo2.app.Component |
---|
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf |
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 modelMethod Detail |
---|
public void addActionListener(nextapp.echo2.app.event.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)
processInput
in class nextapp.echo2.app.Component
Component.processInput(java.lang.String, java.lang.Object)
public void removeActionListener(nextapp.echo2.app.event.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 |