public class RemoveAction 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 |
|---|---|
|
RemoveAction(Application application) |
protected |
RemoveAction(String actionName,
Application application) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enableForPath(ConfigurationNode object)
Returns
true if last object in the path contains a removable object. |
KeyStroke |
getAcceleratorKey()
Returns keyboard shortcut for this action.
|
static String |
getActionName() |
ConfirmRemoveDialog |
getConfirmDeleteDialog(boolean allowAsking)
Creates and returns dialog for delete prompt
|
String |
getIconName()
Returns the name of the icon that should be used for buttons.
|
void |
performAction(ActionEvent e)
Subclasses must implement this method instead of
actionPerformed to
allow for exception handling. |
void |
performAction(ActionEvent e,
boolean allowAsking)
Performs delete action
|
void |
removeDataMap(DataMap map) |
void |
removeDataMapFromDataNode(DataNodeDescriptor node,
DataMap map) |
void |
removeDataNode(DataNodeDescriptor node) |
void |
removeDbEntity(DataMap map,
DbEntity ent)
Removes current DbEntity from its DataMap and fires "remove" EntityEvent.
|
void |
removeEmbeddable(DataMap map,
Embeddable embeddable) |
void |
removeObjEntity(DataMap map,
ObjEntity entity)
Removes current object entity from its DataMap.
|
void |
removeProcedure(DataMap map,
Procedure procedure)
Removes current Procedure from its DataMap and fires "remove" ProcedureEvent.
|
void |
removeQuery(DataMap map,
Query query)
Removes current Query from its DataMap and fires "remove" QueryEvent.
|
actionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, getApplication, getCurrentProject, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerpublic RemoveAction(Application application)
protected RemoveAction(String actionName, Application application)
public static String getActionName()
public String getIconName()
CayenneActionRESOURCE_PATH. Default implementation returns
null.getIconName in class CayenneActionpublic KeyStroke getAcceleratorKey()
CayenneActionnull.getAcceleratorKey in class CayenneActionpublic ConfirmRemoveDialog getConfirmDeleteDialog(boolean allowAsking)
allowAsking - If false, no question will be asked no matter what settings arepublic void performAction(ActionEvent e)
CayenneActionactionPerformed to
allow for exception handling.performAction in class CayenneActionpublic void performAction(ActionEvent e, boolean allowAsking)
allowAsking - If false, no question will be asked no matter what settings arepublic void removeDataMap(DataMap map)
public void removeDataNode(DataNodeDescriptor node)
public void removeDbEntity(DataMap map, DbEntity ent)
public void removeQuery(DataMap map, Query query)
public void removeProcedure(DataMap map, Procedure procedure)
public void removeObjEntity(DataMap map, ObjEntity entity)
public void removeEmbeddable(DataMap map, Embeddable embeddable)
public void removeDataMapFromDataNode(DataNodeDescriptor node, DataMap map)
public boolean enableForPath(ConfigurationNode object)
true if last object in the path contains a removable object.enableForPath in class CayenneActionCopyright © 2001–2015 Apache Cayenne. All rights reserved.