public class EntityDisplayAction extends CayenneAction
alwaysOn, applicationchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
EntityDisplayAction(GraphBuilder builder) |
EntityDisplayAction(GraphBuilder builder,
CayenneAction delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enableForPath(ConfigurationNode object)
Returns
true if the action is enabled for the specified "project
path" - a path on the project tree to a currently selected object. |
String |
getIconName()
Returns the name of the icon that should be used for buttons.
|
void |
performAction(ActionEvent e)
Subclasses must implement this method instead of
actionPerformed to
allow for exception handling. |
actionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, getAcceleratorKey, getApplication, getCurrentProject, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerpublic EntityDisplayAction(GraphBuilder builder)
public EntityDisplayAction(GraphBuilder builder, CayenneAction delegate)
public void performAction(ActionEvent e)
CayenneActionactionPerformed to
allow for exception handling.performAction in class CayenneActionpublic String getIconName()
CayenneActionRESOURCE_PATH. Default implementation returns
null.getIconName in class CayenneActionpublic boolean enableForPath(ConfigurationNode object)
CayenneActiontrue if the action is enabled for the specified "project
path" - a path on the project tree to a currently selected object. Default
implementation simply returns false.enableForPath in class CayenneActionCopyright © 2001–2015 Apache Cayenne. All rights reserved.