eTextReader.actions
Class PreviousPageAction
java.lang.Object
javax.swing.AbstractAction
eTextReader.actions.BaseAction
eTextReader.actions.BrowserAction
eTextReader.actions.PreviousPageAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class PreviousPageAction
- extends BrowserAction
Causes the browser to navigate to the previous page in the current textbook, or the
previous page in the web browsing history, depending on the current mode of the book
- 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 |
PREVIOUS_CHAPTER
public static final java.lang.String PREVIOUS_CHAPTER
- See Also:
- Constant Field Values
WEB_BACK
public static final java.lang.String WEB_BACK
- See Also:
- Constant Field Values
PreviousPageAction
public PreviousPageAction(ContentContainer container)
- Constructs a PreviousPageAction instance associated with the given
container with no icon
- Parameters:
container
- a ContentContainer object associated with this action. As
per the BrowserAction contract, this object must be a Browser, or a
runtime exception will be thrown
PreviousPageAction
public PreviousPageAction(ContentContainer container,
java.lang.String fileName)
- Constructs a PreviousPageAction instance associated with the given
container and having the given icon
- Parameters:
container
- a ContentContainer object associated with this action. As
per the BrowserAction contract, this object must be a Browser, or a
runtime exception will be thrownfileName
- the path to an image file containing the icon for this
action, or null if no image is to be used
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
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: