eTextReader.actions
Class DeleteAnnotationAction
java.lang.Object
javax.swing.AbstractAction
eTextReader.actions.BaseAction
eTextReader.actions.CurrentAnnotationAction
eTextReader.actions.DeleteAnnotationAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class DeleteAnnotationAction
- extends CurrentAnnotationAction
Provides an Action implementation that will facilitate deletion of
the current annotation located in the given content pane
- Author:
- mcfall
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.lang.String |
getActionText()
Returns the verb that should be used to describe the action taken by this
Action. |
protected void |
notationEntered(NotationEvent ne)
Enables or disables this action based on whether the notation entered is deleteable by
the currently logged in user |
protected void |
notationSelected(NotationEvent ne)
Enables or disables this action based on whether the notation entered is deleteable by
the currently logged in user |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentPane
protected ContentContainer contentPane
DeleteAnnotationAction
protected DeleteAnnotationAction(ContentContainer pane)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
getActionText
public java.lang.String getActionText()
- Description copied from class:
CurrentAnnotationAction
- Returns the verb that should be used to describe the action taken by this
Action. The verb is used to set the Action property appropriately as the current annotation
changes
- Specified by:
getActionText
in class CurrentAnnotationAction
- Returns:
notationEntered
protected void notationEntered(NotationEvent ne)
- Enables or disables this action based on whether the notation entered is deleteable by
the currently logged in user
- Overrides:
notationEntered
in class CurrentAnnotationAction
- Parameters:
ne
- the event generated when the notation was entered- See Also:
CurrentAnnotationAction.configureActionOnEnter()
notationSelected
protected void notationSelected(NotationEvent ne)
- Enables or disables this action based on whether the notation entered is deleteable by
the currently logged in user
- Overrides:
notationSelected
in class CurrentAnnotationAction
- Parameters:
ne
- the event generated when the notation was selected- See Also:
CurrentAnnotationAction.configureActionOnEnter()