javax.swing.event
Class HyperlinkEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.swing.event.HyperlinkEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HTMLFrameHyperlinkEvent

public class HyperlinkEvent
extends EventObject

See Also:
Serialized Form

Nested Class Summary
static class HyperlinkEvent.EventType
           
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
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
 String getDescription()
          Returns the description of this event.
 HyperlinkEvent.EventType getEventType()
          Returns the type of this event.
 Element getSourceElement()
          Returns the element of the document repesenting this anchor.
 URL getURL()
          Returns the URL of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

getSourceElement

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


getURL

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


getEventType

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


getDescription

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