Package de.sciss.gui
Class HelpFrame
- java.lang.Object
-
- de.sciss.gui.HelpFrame
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener,javax.swing.event.HyperlinkListener
public class HelpFrame extends java.lang.Object implements javax.swing.event.HyperlinkListener, java.beans.PropertyChangeListenerA frame displaying online HTML help pages.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ObjectCOMP_HELPIdentifier for Application.getComponentprotected javax.swing.JButtonggBackprotected javax.swing.JButtonggEditprotected java.util.ArrayListhistoryprotected inthistoryIndexprotected AbstractWindowwin
-
Constructor Summary
Constructors Constructor Description HelpFrame()Creates a new help frame.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voidhyperlinkUpdate(javax.swing.event.HyperlinkEvent e)voidloadHelpFile(java.lang.String fileName)Replaces the window's contents by a new HTML file.voidloadHelpFile(java.net.URL url)protected voidloadURL()protected voidopenInBrowser()static voidopenViewerAndLoadHelpFile(java.lang.String fileName)Views a help document.static voidopenViewerAndLoadHelpFile(java.net.URL url)voidpropertyChange(java.beans.PropertyChangeEvent e)
-
-
-
Field Detail
-
COMP_HELP
public static final java.lang.Object COMP_HELP
Identifier for Application.getComponent
-
ggEdit
protected final javax.swing.JButton ggEdit
-
ggBack
protected final javax.swing.JButton ggBack
-
history
protected final java.util.ArrayList history
-
historyIndex
protected int historyIndex
-
win
protected final AbstractWindow win
-
-
Constructor Detail
-
HelpFrame
public HelpFrame()
Creates a new help frame. UseloadHelpFileto change the content.- See Also:
loadHelpFile( String )
-
-
Method Detail
-
dispose
public void dispose()
-
openViewerAndLoadHelpFile
public static void openViewerAndLoadHelpFile(java.lang.String fileName)
Views a help document. If no help viewer has been opened, a new one will be created and installed with the current application (component ID =COMP_HELP).- Parameters:
fileName- relative file name of the help text, omitting the directory and the ".html" suffix
-
openViewerAndLoadHelpFile
public static void openViewerAndLoadHelpFile(java.net.URL url)
-
loadHelpFile
public void loadHelpFile(java.lang.String fileName)
Replaces the window's contents by a new HTML file.- Parameters:
fileName- relative file name of the help text, omitting the directory and the ".html" suffix
-
loadHelpFile
public void loadHelpFile(java.net.URL url)
-
loadURL
protected void loadURL() throws java.io.IOException- Throws:
java.io.IOException
-
openInBrowser
protected void openInBrowser()
-
hyperlinkUpdate
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
- Specified by:
hyperlinkUpdatein interfacejavax.swing.event.HyperlinkListener
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
-