public class CreateAttributeAction 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 |
|---|
CreateAttributeAction(Application application)
Constructor for CreateAttributeAction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createDbAttribute(DataMap map,
DbEntity dbEntity,
DbAttribute attr) |
void |
createEmbAttribute(Embeddable embeddable,
EmbeddableAttribute attr) |
void |
createObjAttribute(DataMap map,
ObjEntity objEntity,
ObjAttribute attr) |
boolean |
enableForPath(ConfigurationNode object)
Returns
true if path contains an Entity object. |
static String |
getActionName() |
String |
getIconName()
Returns the name of the icon that should be used for buttons.
|
void |
performAction(ActionEvent e)
Creates ObjAttribute, DbAttribute depending on context.
|
actionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, getAcceleratorKey, getApplication, getCurrentProject, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerpublic CreateAttributeAction(Application application)
public static String getActionName()
public String getIconName()
CayenneActionRESOURCE_PATH. Default implementation returns
null.getIconName in class CayenneActionpublic void performAction(ActionEvent e)
performAction in class CayenneActionpublic void createEmbAttribute(Embeddable embeddable, EmbeddableAttribute attr)
public void createObjAttribute(DataMap map, ObjEntity objEntity, ObjAttribute attr)
public void createDbAttribute(DataMap map, DbEntity dbEntity, DbAttribute attr)
public boolean enableForPath(ConfigurationNode object)
true if path contains an Entity object.enableForPath in class CayenneActionCopyright © 2001–2015 Apache Cayenne. All rights reserved.