Package com.bc.ceres.swing.actions
Class DeleteAction
java.lang.Object
javax.swing.AbstractAction
com.bc.ceres.swing.actions.AbstractSystemAction
com.bc.ceres.swing.actions.AbstractSelectionAction
com.bc.ceres.swing.actions.DeleteAction
- All Implemented Interfaces:
SelectionChangeListener,ActionListener,Serializable,Cloneable,EventListener,Action
A generic 'delete' action.
- Since:
- Ceres 0.10
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bc.ceres.swing.actions.AbstractSelectionAction
getClipboard, getSelection, getSelectionContext, selectionChanged, selectionContextChangedMethods inherited from class com.bc.ceres.swing.actions.AbstractSystemAction
actionPerformed, loadIcon, updateStateMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
DeleteAction
-
-
Method Details
-
isExecutable
public boolean isExecutable()Description copied from class:AbstractSelectionActionChecks if a selection context exists. Overrides should first test the return value ofsuper.isExecutable().- Overrides:
isExecutablein classAbstractSelectionAction- Returns:
true, if so.
-
execute
public void execute()- Specified by:
executein classAbstractSystemAction
-