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, toString
public 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
.HTML
public IlvHTMLText getObject()
public MouseEvent getMouseEvent()
MouseEvent.MOUSE_CLICKED
event.public Element getElement()
public AttributeSet getAttributes()
<a>
element.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.