eTextReader.actions
Class CurrentAuthorListingAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by eTextReader.actions.BaseAction
          extended by eTextReader.actions.CurrentAnnotationAction
              extended by eTextReader.actions.CurrentAnnotationListingAction
                  extended by eTextReader.actions.CurrentAuthorListingAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class CurrentAuthorListingAction
extends CurrentAnnotationListingAction

CurrentAuthorListingAction tracks the current annotation and shows a

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
private  AuthorListingAction authorAction
          The NotationListingAction that should be invoked when this action is invoked
 
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 CurrentAuthorListingAction(ContentContainer contentPane)
           
protected CurrentAuthorListingAction(ContentContainer contentPane, java.lang.String filename)
           
 
Method Summary
protected  NotationListingAction getNotationListingAction()
           
protected  void notationEntered(NotationEvent ne)
          Called when a notation is entered.
 
Methods inherited from class eTextReader.actions.CurrentAnnotationListingAction
actionPerformed, configureActionOnEnter, getActionText
 
Methods inherited from class eTextReader.actions.CurrentAnnotationAction
getCurrentNotation, isEnabledForType, notationExited, notationSelected
 
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

authorAction

private AuthorListingAction authorAction
The NotationListingAction that should be invoked when this action is invoked

Constructor Detail

CurrentAuthorListingAction

protected CurrentAuthorListingAction(ContentContainer contentPane)
Parameters:
contentPane -

CurrentAuthorListingAction

protected CurrentAuthorListingAction(ContentContainer contentPane,
                                     java.lang.String filename)
Parameters:
contentPane -
filename -
Method Detail

getNotationListingAction

protected NotationListingAction getNotationListingAction()
Specified by:
getNotationListingAction in class CurrentAnnotationListingAction

notationEntered

protected void notationEntered(NotationEvent ne)
Description copied from class: CurrentAnnotationAction
Called when a notation is entered. Sub-classes can override this method to perform custom handling whenever the current annotation is changed. This default implementation does nothing. This method should not be used to change the displayed text/tooltip text of the action, since it is called BEFORE configureActionOnEnter. Use that method to change the display properties of the action.

Overrides:
notationEntered in class CurrentAnnotationAction
Parameters:
ne - the NotationEvent representing the entering of the notation
See Also:
CurrentAnnotationAction.configureActionOnEnter()