edu.stanford.ejalbert.browserprefui
Class BrowserPrefAction
java.lang.Object
javax.swing.AbstractAction
edu.stanford.ejalbert.browserprefui.BrowserPrefAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class BrowserPrefAction
- extends javax.swing.AbstractAction
- 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 |
|
Method Summary |
void |
actionPerformed(java.awt.event.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 |
BrowserPrefAction
public BrowserPrefAction(java.lang.String name,
BrowserLauncher browserLauncher,
javax.swing.JFrame appFrame)
BrowserPrefAction
public BrowserPrefAction(java.lang.String name,
javax.swing.Icon icon,
BrowserLauncher browserLauncher,
javax.swing.JFrame appFrame)
actionPerformed
public void actionPerformed(java.awt.event.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