public class RemoveRelationshipAction 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 |
|---|
RemoveRelationshipAction(Application application) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enableForPath(ConfigurationNode object)
Returns
true if last object in the path contains a removable
relationship. |
static String |
getActionName() |
String |
getActionName(boolean multiple) |
void |
performAction(ActionEvent e,
boolean allowAsking)
Performs delete action
|
void |
removeDbRelationships(DbEntity entity,
DbRelationship[] rels) |
void |
removeObjRelationships(ObjEntity entity,
ObjRelationship[] rels) |
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 RemoveRelationshipAction(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
relationship.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 removeObjRelationships(ObjEntity entity, ObjRelationship[] rels)
public void removeDbRelationships(DbEntity entity, DbRelationship[] rels)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.