eTextReader.actions
Class DeleteAnnotationAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by eTextReader.actions.BaseAction
          extended by eTextReader.actions.CurrentAnnotationAction
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class eTextReader.actions.CurrentAnnotationAction
CurrentAnnotationAction.NotationHandler
 
Nested classes/interfaces inherited from class eTextReader.actions.BaseAction
BaseAction.Key
 
Field Summary
protected  ContentContainer contentPane
           
 
Fields inherited from class eTextReader.actions.CurrentAnnotationAction
notationHandler
 
Fields inherited from class eTextReader.actions.BaseAction
instances
 
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
 
Constructor Summary
protected DeleteAnnotationAction(ContentContainer pane)
           
 
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 eTextReader.actions.CurrentAnnotationAction
configureActionOnEnter, getCurrentNotation, isEnabledForType, notationExited
 
Methods inherited from class eTextReader.actions.BaseAction
getAcceleratorKeyStrokeFromPreferences, getInstance, propertyChange
 
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
 

Field Detail

contentPane

protected ContentContainer contentPane
Constructor Detail

DeleteAnnotationAction

protected DeleteAnnotationAction(ContentContainer pane)
Method Detail

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()