Interface IHyperlinkListener

  • All Known Implementing Classes:
    HyperlinkAdapter

    public interface IHyperlinkListener
    Classes that implement this interface will be notified when hyperlinks are entered, exited and activated.
    Since:
    3.0
    See Also:
    Hyperlink, ImageHyperlink, FormText
    • Method Detail

      • linkEntered

        void linkEntered​(HyperlinkEvent e)
        Sent when hyperlink is entered either by mouse entering the link client area, or keyboard focus switching to the hyperlink.
        Parameters:
        e - an event containing information about the hyperlink
      • linkExited

        void linkExited​(HyperlinkEvent e)
        Sent when hyperlink is exited either by mouse exiting the link client area, or keyboard focus switching from the hyperlink.
        Parameters:
        e - an event containing information about the hyperlink
      • linkActivated

        void linkActivated​(HyperlinkEvent e)
        Sent when hyperlink is activated either by mouse click inside the link client area, or by pressing 'Enter' key while hyperlink has keyboard focus.
        Parameters:
        e - an event containing information about the hyperlink
      • linkEnteredAdapter

        static IHyperlinkListener linkEnteredAdapter​(Consumer<HyperlinkEvent> consumer)
        Static helper method to create a IHyperlinkListener for the linkEntered(HyperlinkEvent) method, given a lambda expression or a method reference.
        Parameters:
        consumer - the consumer of the event
        Returns:
        IHyperlinkListener
        Since:
        3.9
      • linkExitedAdapter

        static IHyperlinkListener linkExitedAdapter​(Consumer<HyperlinkEvent> consumer)
        Static helper method to create a IHyperlinkListener for the linkExited(HyperlinkEvent) method, given a lambda expression or a method reference.
        Parameters:
        consumer - the consumer of the event
        Returns:
        IHyperlinkListener
        Since:
        3.9
      • linkActivatedAdapter

        static IHyperlinkListener linkActivatedAdapter​(Consumer<HyperlinkEvent> consumer)
        Static helper method to create a IHyperlinkListener for the linkActivated(HyperlinkEvent) method, given a lambda expression or a method reference.
        Parameters:
        consumer - the consumer of the event
        Returns:
        IHyperlinkListener
        Since:
        3.9