eTextReader.actions
Class QuickAction
java.lang.Object
javax.swing.AbstractAction
eTextReader.actions.BaseAction
eTextReader.actions.BrowserAction
eTextReader.actions.QuickAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Direct Known Subclasses:
- QuickDiagramAction, QuickDiscussionAction, QuickLinkAction, QuickNoteAction, QuickTextAction
public abstract class QuickAction
- extends BrowserAction
- implements java.beans.PropertyChangeListener
- 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 |
annotationType
private Notation.AnnotationType annotationType
QuickAction
public QuickAction(ContentContainer browser,
java.lang.String filename,
Notation.AnnotationType annotationType)
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Handles changes to the user and accelrator key properties by reseting the accelerator associated
with the action
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
- Overrides:
propertyChange
in class BaseAction
getAnnotationType
private Notation.AnnotationType getAnnotationType()
- Retrieves the AnnotationType object associated with this quick action
- Returns:
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
getTooltipText
public abstract java.lang.String getTooltipText()
getText
public abstract java.lang.String getText()
getActionCommand
public abstract java.lang.String getActionCommand()
getAcceleratorKeyStrokeFromPreferences
protected javax.swing.KeyStroke getAcceleratorKeyStrokeFromPreferences()
- Description copied from class:
BaseAction
- Returns the KeyStroke associated with this action from the user's
application preferences. The default implementation here returns null.
Any action that wants to associate an accelerator with its action that
will be maintained by the ApplicationPreferences class should override
this method to load the KeyStroke from the user's application preferences
- Overrides:
getAcceleratorKeyStrokeFromPreferences
in class BaseAction
- Returns: