jmri.util
Class ExternalLinkContentViewerUI

Show UML class diagram
java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.help.plaf.HelpContentViewerUI
          extended by javax.help.plaf.basic.BasicContentViewerUI
              extended by jmri.util.ExternalLinkContentViewerUI
All Implemented Interfaces:
PropertyChangeListener, Serializable, EventListener, javax.help.event.HelpModelListener, javax.help.event.TextHelpModelListener, HyperlinkListener

public class ExternalLinkContentViewerUI
extends javax.help.plaf.basic.BasicContentViewerUI

A UI subclass that will open external links (website or mail links) in an external browser

To use: SwingHelpUtilities.setContentViewerUI("jmri.util.ExternalLinkContentViewerUI");

Since:
JMRI 2.5.3 (or perhaps later, please check CVS)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.help.plaf.basic.BasicContentViewerUI
theViewer
 
Constructor Summary
ExternalLinkContentViewerUI(javax.help.JHelpContentViewer x)
           
 
Method Summary
static void activateURL(URL u)
           
static ComponentUI createUI(JComponent x)
           
 void hyperlinkUpdate(HyperlinkEvent he)
           
 
Methods inherited from class javax.help.plaf.basic.BasicContentViewerUI
getMaximumSize, getMinimumSize, getPreferredSize, highlightsChanged, idChanged, installUI, linkActivated, propertyChange, setEditorKit, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalLinkContentViewerUI

public ExternalLinkContentViewerUI(javax.help.JHelpContentViewer x)
Method Detail

createUI

public static ComponentUI createUI(JComponent x)

hyperlinkUpdate

public void hyperlinkUpdate(HyperlinkEvent he)
Specified by:
hyperlinkUpdate in interface HyperlinkListener
Overrides:
hyperlinkUpdate in class javax.help.plaf.basic.BasicContentViewerUI

activateURL

public static void activateURL(URL u)
                        throws IOException,
                               URISyntaxException
Throws:
IOException
URISyntaxException


Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads