Package de.sciss.common
Class URLViewerAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- de.sciss.gui.MenuAction
-
- de.sciss.common.URLViewerAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class URLViewerAction extends MenuAction
Generic action for bringing up a html document either in the help viewer or the default web browser- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description URLViewerAction(java.lang.String text, javax.swing.KeyStroke shortcut, java.lang.String theURL, boolean openWebBrowser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)Tries to find the component using theMainclass'getComponentmethod.-
Methods inherited from class de.sciss.gui.MenuAction
deinstallFrom, installOn, mimic
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
URLViewerAction
public URLViewerAction(java.lang.String text, javax.swing.KeyStroke shortcut, java.lang.String theURL, boolean openWebBrowser)- Parameters:
theURL- what file to open ; when using the help viewer, that's the relative help file name without .html extension. when using web browser, that's the complete URL!openWebBrowser- if true, use the default web browser, if false use internal help viewer
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Tries to find the component using theMainclass'getComponentmethod. It does not instantiate a new object if the component is not found. If the window is already open, this method will bring it to the front.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Specified by:
actionPerformedin classMenuAction
-
-