Class HyperlinkEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public final class HyperlinkEvent
    extends TypedEvent
    Notifies listeners about a hyperlink change.
    Since:
    3.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HyperlinkEvent​(Widget widget, java.lang.Object href, java.lang.String label, int stateMask)
      Creates a new hyperlink
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getHref()
      The hyperlink reference that will be followed when the hyperlink is activated.
      java.lang.String getLabel()
      The text of the hyperlink rendered in the source widget.
      int getStateMask()
      Returns the value of the keyboard state mask present when the event occured, or SWT.NULL for no modifiers.
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HyperlinkEvent

        public HyperlinkEvent​(Widget widget,
                              java.lang.Object href,
                              java.lang.String label,
                              int stateMask)
        Creates a new hyperlink
        Parameters:
        widget - event source
        href - the hyperlink reference that will be followed upon when the hyperlink is activated.
        label - the name of the hyperlink (the text that is rendered as a link in the source widget).
        stateMask - the given state mask
    • Method Detail

      • getHref

        public java.lang.Object getHref()
        The hyperlink reference that will be followed when the hyperlink is activated.
        Returns:
        the hyperlink reference object
      • getLabel

        public java.lang.String getLabel()
        The text of the hyperlink rendered in the source widget.
        Returns:
        the hyperlink label
      • getStateMask

        public int getStateMask()
        Returns the value of the keyboard state mask present when the event occured, or SWT.NULL for no modifiers.
        Returns:
        the keyboard state mask or SWT.NULL.