public class HTMLHyperlinkEvent extends EventObject
HTMLHyperlinkEvent is delivered when the user has clicked
on a hyperlink in an IlvHTMLText graphic object.HTMLInteractionListener.hyperlinkClicked(HTMLHyperlinkEvent),
Serialized Formsource| Constructor and Description |
|---|
HTMLHyperlinkEvent(IlvHTMLText source,
MouseEvent event,
Element elem,
AttributeSet attributes)
Creates an
HTMLHyperlinkEvent. |
| Modifier and Type | Method and Description |
|---|---|
AttributeSet |
getAttributes()
Returns the attributes of the enclosing
<a> element. |
Element |
getElement()
Returns the element of the HTML document on which the user clicked.
|
MouseEvent |
getMouseEvent()
Returns the mouse event that triggered this event.
|
IlvHTMLText |
getObject()
Returns the graphic object on which the event occurred.
|
getSource, toStringpublic HTMLHyperlinkEvent(IlvHTMLText source, MouseEvent event, Element elem, AttributeSet attributes)
HTMLHyperlinkEvent.source - A graphic object of type IlvHTMLText.event - A MouseEvent.MOUSE_CLICKED event.elem - An element in the document tree, corresponding to the location
where the user clicked.attributes - The attributes of the enclosing <a>
element. It contains at least an
HTML.Attribute.HREF
attribute.
Other possible attributes are
HTML.Attribute.TARGET,
HTML.Attribute.TYPE,
HTML.Attribute.REL,
HTML.Attribute.REV.HTMLpublic IlvHTMLText getObject()
public MouseEvent getMouseEvent()
MouseEvent.MOUSE_CLICKED event.public Element getElement()
public AttributeSet getAttributes()
<a> element.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.