eTextReader.actions
Class NextPageAction
java.lang.Object
javax.swing.AbstractAction
eTextReader.actions.BaseAction
eTextReader.actions.BrowserAction
eTextReader.actions.NextPageAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class NextPageAction
- extends BrowserAction
Causes the browser to navigate to the next page in the current textbook, or the
next 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 |
Constructor Summary |
NextPageAction(ContentContainer container)
Constructs a NextPageAction instance associated with the given
container with no icon |
NextPageAction(ContentContainer container,
java.lang.String fileName)
Constructs a NextPageAction instance associated with the given
container and having the given 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 |
NEXT_CHAPTER
public static final java.lang.String NEXT_CHAPTER
- See Also:
- Constant Field Values
WEB_FORWARD
public static final java.lang.String WEB_FORWARD
- See Also:
- Constant Field Values
NextPageAction
public NextPageAction(ContentContainer container,
java.lang.String fileName)
- Constructs a NextPageAction 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
NextPageAction
public NextPageAction(ContentContainer container)
- Constructs a NextPageAction 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
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: