edu.stanford.ejalbert.browserprefui
Class BrowserPrefAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byedu.stanford.ejalbert.browserprefui.BrowserPrefAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class BrowserPrefAction
extends AbstractAction

Version:
1.0
Author:
Jeff Chapman
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
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
BrowserPrefAction(String name, BrowserLauncher browserLauncher, JFrame appFrame)
           
BrowserPrefAction(String name, Icon icon, BrowserLauncher browserLauncher, JFrame appFrame)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Launches a browser preferences dialog and sets the system property BrowserLauncher.BROWSER_SYSTEM_PROPERTY with the requested browser.
 
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

BrowserPrefAction

public BrowserPrefAction(String name,
                         BrowserLauncher browserLauncher,
                         JFrame appFrame)

BrowserPrefAction

public BrowserPrefAction(String name,
                         Icon icon,
                         BrowserLauncher browserLauncher,
                         JFrame appFrame)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Launches a browser preferences dialog and sets the system property BrowserLauncher.BROWSER_SYSTEM_PROPERTY with the requested browser.

Browser prefs dialog will be placed in the Swing thread queue to enable action performed method to return immediately.

Parameters:
e - ActionEvent