public class CreateObjEntityListenerAction 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| Modifier | Constructor and Description |
|---|---|
|
CreateObjEntityListenerAction(Application application)
Constructor.
|
protected |
CreateObjEntityListenerAction(String actionName,
Application application)
Constructor for extending classes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createEntityListener(ObjEntity objEntity,
EntityListener listener) |
static String |
getActionName() |
String |
getIconName()
Returns the name of the icon that should be used for buttons.
|
protected boolean |
isListenerClassAlreadyExists(String className)
checks whether the new name of listener class already exists
|
void |
performAction(ActionEvent e)
base entity listenre creation logic
|
actionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, enableForPath, getAcceleratorKey, getApplication, getCurrentProject, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerpublic CreateObjEntityListenerAction(Application application)
application - Application instanceprotected CreateObjEntityListenerAction(String actionName, Application application)
actionName - unique action nameapplication - Application instancepublic static String getActionName()
public String getIconName()
CayenneActionRESOURCE_PATH. Default implementation returns
null.getIconName in class CayenneActionprotected boolean isListenerClassAlreadyExists(String className)
className - entered class namepublic void performAction(ActionEvent e)
performAction in class CayenneActione - eventpublic void createEntityListener(ObjEntity objEntity, EntityListener listener)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.