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:
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent x)
      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

      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.
      Overrides:
      linkActivated in class javax.help.plaf.basic.BasicContentViewerUI
      Parameters:
      u - the URL to follow