Class HyperlinkComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

@Deprecated(since="11.3", forRemoval=true) public class HyperlinkComponent extends JPanel
Deprecated, for removal: This API element is subject to removal in a future version.
A component that acts like a label, but adds the ability to render HTML anchors and the ability for clients to add anchor handlers.

When given HTML content (a String that starts with <HTML>) and anchor tags (<a href="callback_name">a hyper link<a>), this component will display the hyperlinks properly and will notify any registered listeners (addHyperlinkListener(String, HyperlinkListener) that the user has clicked the link by the given name.

See Also:
  • Constructor Details

    • HyperlinkComponent

      public HyperlinkComponent(String htmlTextWithHyperlinks)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • addHyperlinkListener

      public void addHyperlinkListener(String anchorName, HyperlinkListener listener)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Add a listener that will be called whenever hyperlink updates happen (hover, activate, etc).
      Parameters:
      anchorName - The value in the href attribute of the anchor tag.
      listener - The listener to be called when the anchor(s) with a matching href is manipulated by the user.
    • removeHyperlinkListener

      public void removeHyperlinkListener(String anchorName, HyperlinkListener listener)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setText

      public void setText(String text)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getText

      public String getText()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addMouseListener

      public void addMouseListener(MouseListener l)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      addMouseListener in class Component
    • removeMouseListener

      public void removeMouseListener(MouseListener l)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      removeMouseListener in class Component
    • addMouseMotionListener

      public void addMouseMotionListener(MouseMotionListener l)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      addMouseMotionListener in class Component
    • removeMouseMotionListener

      public void removeMouseMotionListener(MouseMotionListener l)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      removeMouseMotionListener in class Component