eTextReader.actions
Class CurrentTypeListingAction
java.lang.Object
javax.swing.AbstractAction
eTextReader.actions.BaseAction
eTextReader.actions.CurrentAnnotationAction
eTextReader.actions.CurrentAnnotationListingAction
eTextReader.actions.CurrentTypeListingAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class CurrentTypeListingAction
- extends CurrentAnnotationListingAction
A NotationListingAction that shows all annotations of the same type as the currently selected annotation.
- 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 |
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 |
listingAction
private AnnotationTypeAction listingAction
CurrentTypeListingAction
public CurrentTypeListingAction(ContentContainer contentPane)
- Parameters:
contentPane
-
CurrentTypeListingAction
public CurrentTypeListingAction(ContentContainer contentPane,
java.lang.String filename)
- Parameters:
contentPane
- filename
-
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()
getNotationListingAction
protected NotationListingAction getNotationListingAction()
- Specified by:
getNotationListingAction
in class CurrentAnnotationListingAction
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
- Overrides:
getActionText
in class CurrentAnnotationListingAction
- Returns: