Package org.ka2ddo.yaac.gui.help
Class MultiJarContentViewerUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.help.plaf.HelpContentViewerUI
javax.help.plaf.basic.BasicContentViewerUI
org.ka2ddo.yaac.gui.help.MultiJarContentViewerUI
- All Implemented Interfaces:
PropertyChangeListener
,Serializable
,EventListener
,javax.help.event.HelpModelListener
,javax.help.event.TextHelpModelListener
,HyperlinkListener
public class MultiJarContentViewerUI
extends javax.help.plaf.basic.BasicContentViewerUI
This class overrides the normal JavaHelp UI so that if a YAAC plugin help file
tries to hyperlink to a core YAAC help file, the URL will be fixed to point at the
correct JAR file.
- Author:
- Andrew Pavlin, KA2DDO
- See Also:
-
Field Summary
Fields inherited from class javax.help.plaf.basic.BasicContentViewerUI
theViewer
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
Reflection-launched method to create the JavaHelp viewer supporting multiple jar files' help data.protected void
linkActivated
(URL u) Follows the reference in an link.Methods inherited from class javax.help.plaf.basic.BasicContentViewerUI
getMaximumSize, getMinimumSize, getPreferredSize, highlightsChanged, hyperlinkUpdate, idChanged, installUI, propertyChange, setEditorKit, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
Method Details
-
createUI
Reflection-launched method to create the JavaHelp viewer supporting multiple jar files' help data.- Parameters:
x
- the JComponent parenting the help viewer- Returns:
- the help content viewer widget
-
linkActivated
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.- Overrides:
linkActivated
in classjavax.help.plaf.basic.BasicContentViewerUI
- Parameters:
u
- the URL to follow
-