org.openscience.jmol.app

Class HelpDialog

public class HelpDialog extends JDialog implements HyperlinkListener

Nested Class Summary
classHelpDialog.PageLoader
temporary class that loads synchronously (although later than the request so that a cursor change can be done).
Field Summary
JEditorPanehtml
Constructor Summary
HelpDialog(JFrame fr)
HelpDialog(JFrame fr, URL url)
If url is null, then the default help url is taken.
Method Summary
protected voidcenterDialog()
voidhyperlinkUpdate(HyperlinkEvent e)
protected voidlinkActivated(URL u)
Follows the reference in an link.
voidOKPressed()

Field Detail

html

JEditorPane html

Constructor Detail

HelpDialog

public HelpDialog(JFrame fr)

HelpDialog

public HelpDialog(JFrame fr, URL url)
If url is null, then the default help url is taken.

Parameters: fr url

Method Detail

centerDialog

protected void centerDialog()

hyperlinkUpdate

public void hyperlinkUpdate(HyperlinkEvent e)

linkActivated

protected void linkActivated(URL u)
Follows the reference in an link. The given url is the requested reference. By default this calls setPage, and if an exception is thrown the original previous document is restored and a beep sounded. If an attempt was made to follow a link, but it represented a malformed url, this method will be called with a null argument.

Parameters: u the URL to follow

OKPressed

public void OKPressed()