Class ExtensionDetailsPanel.HyperlinkAction

java.lang.Object
javax.swing.AbstractAction
ca.corbett.extensions.ui.ExtensionDetailsPanel.HyperlinkAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
ExtensionDetailsPanel

protected static class ExtensionDetailsPanel.HyperlinkAction extends AbstractAction
A generic action that can be hooked onto any hyperlinked LabelField to open the given url in the user's default browser. If the given URL can't be parsed, or if the current JRE doesn't support link browsing, then the url is copied to the system clipboard and an informational popup is shown to that effect.
Author:
scorbo2
See Also:
  • Constructor Details

    • HyperlinkAction

      public HyperlinkAction(Window ownerWindow, String url)
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)