Liking cljdoc? Tell your friends :D

javax.swing.event.HyperlinkEvent

HyperlinkEvent is used to notify interested parties that something has happened with respect to a hypertext link.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.

HyperlinkEvent is used to notify interested parties that
something has happened with respect to a hypertext link.

Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing.  As of 1.4, support for long term storage
of all JavaBeans™
has been added to the java.beans package.
Please see XMLEncoder.
raw docstring

(->hyperlink-event source type u)
(->hyperlink-event source type u desc)
(->hyperlink-event source type u desc source-element)
(->hyperlink-event source type u desc source-element input-event)

Constructor.

Creates a new object representing a hypertext link event.

source - the object responsible for the event - java.lang.Object type - the event type - javax.swing.event.HyperlinkEvent$EventType u - the affected URL. This may be null if a valid URL could not be created. - java.net.URL desc - the description of the link. This may be useful when attempting to form a URL resulted in a MalformedURLException. The description provides the text used when attempting to form the URL. - java.lang.String source-element - Element in the Document representing the anchor - javax.swing.text.Element input-event - InputEvent that triggered the hyperlink event - java.awt.event.InputEvent

Constructor.

Creates a new object representing a hypertext link event.

source - the object responsible for the event - `java.lang.Object`
type - the event type - `javax.swing.event.HyperlinkEvent$EventType`
u - the affected URL. This may be null if a valid URL could not be created. - `java.net.URL`
desc - the description of the link. This may be useful when attempting to form a URL resulted in a MalformedURLException. The description provides the text used when attempting to form the URL. - `java.lang.String`
source-element - Element in the Document representing the anchor - `javax.swing.text.Element`
input-event - InputEvent that triggered the hyperlink event - `java.awt.event.InputEvent`
raw docstring

get-descriptionclj

(get-description this)

Get the description of the link as a string. This may be useful if a URL can't be formed from the description, in which case the associated URL would be null.

returns: java.lang.String

Get the description of the link as a string.
 This may be useful if a URL can't be formed
 from the description, in which case the associated
 URL would be null.

returns: `java.lang.String`
raw docstring

get-event-typeclj

(get-event-type this)

Gets the type of event.

returns: the type - javax.swing.event.HyperlinkEvent$EventType

Gets the type of event.

returns: the type - `javax.swing.event.HyperlinkEvent$EventType`
raw docstring

get-input-eventclj

(get-input-event this)

Returns the InputEvent that triggered the hyperlink event. This will typically be a MouseEvent. If a constructor is used that does not specify an InputEvent, or @{code null} was specified as the InputEvent, this returns null.

returns: InputEvent that triggered the hyperlink event, or null - java.awt.event.InputEvent

Returns the InputEvent that triggered the hyperlink event.
 This will typically be a MouseEvent.  If a constructor is used
 that does not specify an InputEvent, or @{code null}
 was specified as the InputEvent, this returns null.

returns: InputEvent that triggered the hyperlink event, or null - `java.awt.event.InputEvent`
raw docstring

get-source-elementclj

(get-source-element this)

Returns the Element that corresponds to the source of the event. This will typically be an Element representing an anchor. If a constructor that is used that does not specify a source Element, or null was specified as the source Element, this will return null.

returns: Element indicating source of event, or null - javax.swing.text.Element

Returns the Element that corresponds to the source of the
 event. This will typically be an Element representing
 an anchor. If a constructor that is used that does not specify a source
 Element, or null was specified as the source
 Element, this will return null.

returns: Element indicating source of event, or null - `javax.swing.text.Element`
raw docstring

get-urlclj

(get-url this)

Gets the URL that the link refers to.

returns: the URL - java.net.URL

Gets the URL that the link refers to.

returns: the URL - `java.net.URL`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close