eTextReader.actions
Class BrowserAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by eTextReader.actions.BaseAction
          extended by eTextReader.actions.BrowserAction
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:
FindAction, NewTabAction, NextPageAction, PreviousPageAction, QuickAction

public abstract class BrowserAction
extends BaseAction

BrowserAction is a subclass of BaseAction that requires the runtime type of its parameter to be a Browser. The only change it makes to BaseAction is a check that the ContentContainer it is passed is a Browser.

Author:
mcfall
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class eTextReader.actions.BaseAction
BaseAction.Key
 
Field Summary
 Browser browser
           
 
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
BrowserAction(ContentContainer container, java.lang.String fileName)
          Constructs a BrowserAction contained by container and having the icon fileName
 
Method Summary
 
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
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

browser

public Browser browser
Constructor Detail

BrowserAction

public BrowserAction(ContentContainer container,
                     java.lang.String fileName)
Constructs a BrowserAction contained by container and having the icon fileName

Parameters:
container - the Browser associated with this action
fileName - the path to an icon for the action
Throws:
java.lang.IllegalArgumentException - if container is not an instance of the Browser class