public class RemoveAttributeAction extends RemoveAction implements MultipleObjectsAction
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 |
|---|
RemoveAttributeAction(Application application) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enableForPath(ConfigurationNode object)
Returns
true if last object in the path contains a removable
attribute. |
static String |
getActionName() |
String |
getActionName(boolean multiple) |
void |
performAction(ActionEvent e,
boolean allowAsking)
Performs delete action
|
void |
removeDbAttributes(DataMap dataMap,
DbEntity entity,
DbAttribute[] attribs) |
void |
removeEmbeddableAttributes(Embeddable embeddable,
EmbeddableAttribute[] attrs) |
void |
removeObjAttributes(ObjEntity entity,
ObjAttribute[] attribs) |
getAcceleratorKey, getConfirmDeleteDialog, getIconName, performAction, removeDataMap, removeDataMapFromDataNode, removeDataNode, removeDbEntity, removeEmbeddable, removeObjEntity, removeProcedure, removeQueryactionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, getApplication, getCurrentProject, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledactionPerformedpublic RemoveAttributeAction(Application application)
public static String getActionName()
public String getActionName(boolean multiple)
getActionName in interface MultipleObjectsActionpublic boolean enableForPath(ConfigurationNode object)
true if last object in the path contains a removable
attribute.enableForPath in class RemoveActionpublic void performAction(ActionEvent e, boolean allowAsking)
RemoveActionperformAction in class RemoveActionallowAsking - If false, no question will be asked no matter what settings arepublic void removeDbAttributes(DataMap dataMap, DbEntity entity, DbAttribute[] attribs)
public void removeObjAttributes(ObjEntity entity, ObjAttribute[] attribs)
public void removeEmbeddableAttributes(Embeddable embeddable, EmbeddableAttribute[] attrs)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.