eTextReader.actions
Class NewTabAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by eTextReader.actions.BaseAction
          extended by eTextReader.actions.BrowserAction
              extended by eTextReader.actions.NewTabAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class NewTabAction
extends BrowserAction

Author:
mcfall
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class eTextReader.actions.BaseAction
BaseAction.Key
 
Field Summary
 
Fields inherited from class eTextReader.actions.BrowserAction
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
NewTabAction(ContentContainer container)
           
NewTabAction(ContentContainer container, java.lang.String fileName)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  javax.swing.KeyStroke getAcceleratorKeyStrokeFromPreferences()
          Returns the KeyStroke associated with this action from the user's application preferences.
 
Methods inherited from class eTextReader.actions.BaseAction
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
 

Constructor Detail

NewTabAction

public NewTabAction(ContentContainer container)

NewTabAction

public NewTabAction(ContentContainer container,
                    java.lang.String fileName)
Parameters:
container -
fileName -
Method Detail

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:

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)