APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.text.html

public Class HTMLFrameHyperlinkEvent

extends HyperlinkEvent
Class Inheritance
Known Direct Subclasses
javax.swing.text.html.FormSubmitEvent
Annotations
@SuppressWarnings:serial
Imports
java.awt.event.InputEvent, javax.swing.text.*, javax.swing.event.HyperlinkEvent, java.net.URL

HTMLFrameHyperlinkEvent is used to notify interested parties that link was activated in a frame.
Author
Sunita Mani

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public
HTMLFrameHyperlinkEvent(Object
the object responsible for the event
source
,
HyperlinkEvent.EventType
the event type
type
,
URL
the affected URL
targetURL
,
String
the Frame to display the document in
targetFrame
)

Creates a new object representing a html frame hypertext link event.

public
HTMLFrameHyperlinkEvent(Object
the object responsible for the event
source
,
HyperlinkEvent.EventType
the event type
type
,
URL
the affected URL
targetURL
,
String
a description
desc
,
String
the Frame to display the document in
targetFrame
)

Creates a new object representing a hypertext link event.

public
HTMLFrameHyperlinkEvent(Object
the object responsible for the event
source
,
HyperlinkEvent.EventType
the event type
type
,
URL
the affected URL
targetURL
,
Element
the element that corresponds to the source of the event
sourceElement
,
String
the Frame to display the document in
targetFrame
)

Creates a new object representing a hypertext link event.

public
HTMLFrameHyperlinkEvent(Object
the object responsible for the event
source
,
HyperlinkEvent.EventType
the event type
type
,
URL
the affected URL
targetURL
,
String
a description
desc
,
Element
the element that corresponds to the source of the event
sourceElement
,
String
the Frame to display the document in
targetFrame
)

Creates a new object representing a hypertext link event.

public
HTMLFrameHyperlinkEvent(Object
the object responsible for the event
source
,
HyperlinkEvent.EventType
the event type
type
,
URL
the affected URL
targetURL
,
String
a description
desc
,
Element
the element that corresponds to the source of the event
sourceElement
,
InputEvent
InputEvent that triggered the hyperlink event
inputEvent
,
String
the Frame to display the document in
targetFrame
)

Creates a new object representing a hypertext link event.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the target for the link
getTarget
()

returns the target for the link.

Inherited from javax.swing.event.HyperlinkEvent:
getDescriptiongetEventTypegetInputEventgetSourceElementgetURL

Field Detail

targetFrameback to summary
private String targetFrame

Constructor Detail

HTMLFrameHyperlinkEventback to summary
public HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String targetFrame)

Creates a new object representing a html frame hypertext link event.

Parameters
source:Object

the object responsible for the event

type:HyperlinkEvent.EventType

the event type

targetURL:URL

the affected URL

targetFrame:String

the Frame to display the document in

HTMLFrameHyperlinkEventback to summary
public HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, String targetFrame)

Creates a new object representing a hypertext link event.

Parameters
source:Object

the object responsible for the event

type:HyperlinkEvent.EventType

the event type

targetURL:URL

the affected URL

desc:String

a description

targetFrame:String

the Frame to display the document in

HTMLFrameHyperlinkEventback to summary
public HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, Element sourceElement, String targetFrame)

Creates a new object representing a hypertext link event.

Parameters
source:Object

the object responsible for the event

type:HyperlinkEvent.EventType

the event type

targetURL:URL

the affected URL

sourceElement:Element

the element that corresponds to the source of the event

targetFrame:String

the Frame to display the document in

HTMLFrameHyperlinkEventback to summary
public HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, Element sourceElement, String targetFrame)

Creates a new object representing a hypertext link event.

Parameters
source:Object

the object responsible for the event

type:HyperlinkEvent.EventType

the event type

targetURL:URL

the affected URL

desc:String

a description

sourceElement:Element

the element that corresponds to the source of the event

targetFrame:String

the Frame to display the document in

HTMLFrameHyperlinkEventback to summary
public HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, Element sourceElement, InputEvent inputEvent, String targetFrame)

Creates a new object representing a hypertext link event.

Parameters
source:Object

the object responsible for the event

type:HyperlinkEvent.EventType

the event type

targetURL:URL

the affected URL

desc:String

a description

sourceElement:Element

the element that corresponds to the source of the event

inputEvent:InputEvent

InputEvent that triggered the hyperlink event

targetFrame:String

the Frame to display the document in

Since
1.7

Method Detail

getTargetback to summary
public String getTarget()

returns the target for the link.

Returns:String

the target for the link