Creates a new object representing a hypertext link event.
Creates a new object representing a hypertext link event.
Parameters: - source - the object responsible for the event
- type - the event type
- targetURL - the affected URL
- sourceElement - the element that corresponds to the source
of the event
- targetFrame - the Frame to display the document in
public HTMLFrameHyperlinkEvent
(Object source, EventType type, URL targetURL, String targetFrame)
Creates a new object representing a html frame
hypertext link event.
Creates a new object representing a html frame hypertext link event.
Parameters: - source - the object responsible for the event
- type - the event type
- targetURL - the affected URL
- targetFrame - the Frame to display the document in
Creates a new object representing a hypertext link event.
Creates a new object representing a hypertext link event.
Parameters: - source - the object responsible for the event
- type - the event type
- targetURL - the affected URL
- desc - a desription
- sourceElement - the element that corresponds to the source
of the event
- targetFrame - the Frame to display the document in
Creates a new object representing a hypertext link event.
Creates a new object representing a hypertext link event.
Parameters: - source - the object responsible for the event
- type - the event type
- targetURL - the affected URL
- desc - a description
- targetFrame - the Frame to display the document in
Get the description of the link as a string. This may be useful if a URL can't be formed from the description, in which case the associated URL would be null.
Returns the Element that corresponds to the source of the
event.
Returns the Element that corresponds to the source of the event. This will typically be an Element representing an anchor. If a constructur that is used that does not specify a source Element, or null was specified as the source Element, this will return null.
Returns:
Element indicating source of event, or null
Since:
1.4