public class HyperlinkEvent extends java.util.EventObject
| Modifier and Type | Class and Description |
|---|---|
static class |
HyperlinkEvent.EventType |
| Constructor and Description |
|---|
HyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL url)
Creates a new
HyperlinkEvent with the given arguments. |
HyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL url,
java.lang.String description)
Creates a new
HyperlinkEvent with the given arguments. |
HyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL url,
java.lang.String description,
javax.swing.text.Element element)
Creates a new
HyperlinkEvent with the given arguments. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns the description of this event.
|
HyperlinkEvent.EventType |
getEventType()
Returns the type of this event.
|
javax.swing.text.Element |
getSourceElement()
Returns the element of the document repesenting this anchor.
|
java.net.URL |
getURL()
Returns the URL of this event.
|
public HyperlinkEvent(java.lang.Object source, HyperlinkEvent.EventType type, java.net.URL url)
HyperlinkEvent with the given arguments.source - The object this link is associated to.type - The type of event.url - The URL this link pointing too.public HyperlinkEvent(java.lang.Object source, HyperlinkEvent.EventType type, java.net.URL url, java.lang.String description)
HyperlinkEvent with the given arguments.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.public HyperlinkEvent(java.lang.Object source, HyperlinkEvent.EventType type, java.net.URL url, java.lang.String description, javax.swing.text.Element element)
HyperlinkEvent with the given arguments.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.public javax.swing.text.Element getSourceElement()
public java.net.URL getURL()
public HyperlinkEvent.EventType getEventType()
public java.lang.String getDescription()