public abstract class DeleteContextAction extends AbstractAction
AbstractAction
that allows to delete a Context
.
The (default) accelerator for the action is given by View.getDefaultDeleteKeyStroke()
.
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_NAME
The name of the action.
|
changeSupport, enabled
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 and Description |
---|
DeleteContextAction()
Constructs a
DeleteContextAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
protected abstract Context |
getContext()
Called when the action is performed, to delete the returned context.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static final String ACTION_NAME
public DeleteContextAction()
DeleteContextAction
.public void actionPerformed(ActionEvent e)
protected abstract Context getContext()
Context
to delete, or null
if none.