buoy.event
Class DocumentLinkEvent

java.lang.Object
  extended by java.util.EventObject
      extended by buoy.event.DocumentLinkEvent
All Implemented Interfaces:
WidgetEvent, java.io.Serializable

public class DocumentLinkEvent
extends java.util.EventObject
implements WidgetEvent

A DocumentLinkEvents is generated when the user clicks on a hyperlink inside a BDocumentViewer. It is a simple wrapper around a javax.swing.event.HyperlinkEvent object.

Author:
Peter Eastman
See Also:
Serialized Form

Constructor Summary
DocumentLinkEvent(Widget widget, javax.swing.event.HyperlinkEvent event)
          Create a DocumentLinkEvent.
 
Method Summary
 java.lang.String getDescription()
          Get a description of the link which was clicked.
 javax.swing.event.HyperlinkEvent getEvent()
          Get the original HyperlinkEvent.
 java.net.URL getURL()
          Get the URL of the link which was clicked.
 Widget getWidget()
          Get the Widget which generated this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentLinkEvent

public DocumentLinkEvent(Widget widget,
                         javax.swing.event.HyperlinkEvent event)
Create a DocumentLinkEvent.

Parameters:
widget - the Widget containing the link that was selected
event - the original HyperlinkEvent
Method Detail

getWidget

public Widget getWidget()
Get the Widget which generated this event.

Specified by:
getWidget in interface WidgetEvent

getURL

public java.net.URL getURL()
Get the URL of the link which was clicked.


getDescription

public java.lang.String getDescription()
Get a description of the link which was clicked.


getEvent

public javax.swing.event.HyperlinkEvent getEvent()
Get the original HyperlinkEvent.



Written by Peter Eastman.