javax.swing.event

Class HyperlinkEvent

public class HyperlinkEvent extends EventObject

Nested Class Summary
static classHyperlinkEvent.EventType
Constructor Summary
HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL url)
Creates a new HyperlinkEvent with the given arguments.
HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL url, String description)
Creates a new HyperlinkEvent with the given arguments.
HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL url, String description, Element element)
Creates a new HyperlinkEvent with the given arguments.
Method Summary
StringgetDescription()
Returns the description of this event.
HyperlinkEvent.EventTypegetEventType()
Returns the type of this event.
ElementgetSourceElement()
Returns the element of the document repesenting this anchor.
URLgetURL()
Returns the URL of this event.

Constructor Detail

HyperlinkEvent

public HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL url)
Creates a new HyperlinkEvent with the given arguments.

Parameters: source The object this link is associated to. type The type of event. url The URL this link pointing too.

HyperlinkEvent

public HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL url, String description)
Creates a new HyperlinkEvent with the given arguments.

Parameters: source The object this link is associated to. type The type of event. url The URL this link pointing too. description The description for this link.

HyperlinkEvent

public HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL url, String description, Element element)
Creates a new HyperlinkEvent with the given arguments.

Parameters: source The object this link is associated to. type The type of event. url The URL this link pointing too. description The description for this link. element The element in the document representing the anchor.

Method Detail

getDescription

public String getDescription()
Returns the description of this event.

getEventType

public HyperlinkEvent.EventType getEventType()
Returns the type of this event.

getSourceElement

public Element getSourceElement()
Returns the element of the document repesenting this anchor.

getURL

public URL getURL()
Returns the URL of this event.