public class ChangeObjEntityListenerClassAction 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 |
|---|---|
|
ChangeObjEntityListenerClassAction(Application application)
Constructor.
|
protected |
ChangeObjEntityListenerClassAction(String name,
Application application)
Constructor for extending classes
|
| Modifier and Type | Method and Description |
|---|---|
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 listener class renaming logic
|
protected void |
renameEntityListener(String prevListenerClass,
String newListenerClass)
change entity listener class
|
actionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, enableForPath, getAcceleratorKey, getApplication, getCurrentProject, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerpublic ChangeObjEntityListenerClassAction(Application application)
application - Application instanceprotected ChangeObjEntityListenerClassAction(String name, Application application)
name - 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 nameprotected void renameEntityListener(String prevListenerClass, String newListenerClass)
prevListenerClass - previous class namenewListenerClass - new class namepublic void performAction(ActionEvent e)
performAction in class CayenneActione - eventCopyright © 2001–2015 Apache Cayenne. All rights reserved.