buoy.event

Class DocumentLinkEvent

Implemented Interfaces:
WidgetEvent

public class DocumentLinkEvent
extends 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

Constructor Summary

DocumentLinkEvent(Widget widget, HyperlinkEvent event)
Create a DocumentLinkEvent.

Method Summary

String
getDescription()
Get a description of the link which was clicked.
HyperlinkEvent
getEvent()
Get the original HyperlinkEvent.
URL
getURL()
Get the URL of the link which was clicked.
Widget
getWidget()
Get the Widget which generated this event.

Constructor Details

DocumentLinkEvent

public DocumentLinkEvent(Widget widget,
                         HyperlinkEvent event)
Create a DocumentLinkEvent.
Parameters:
widget - the Widget containing the link that was selected
event - the original HyperlinkEvent

Method Details

getDescription

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

getEvent

public HyperlinkEvent getEvent()
Get the original HyperlinkEvent.

getURL

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

getWidget

public Widget getWidget()
Get the Widget which generated this event.
Specified by:
getWidget in interface WidgetEvent

Written by Peter Eastman.