javax.swing.text.html
Class HTMLFrameHyperlinkEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.swing.event.HyperlinkEvent
|
+--javax.swing.text.html.HTMLFrameHyperlinkEvent
- public class HTMLFrameHyperlinkEvent
- extends HyperlinkEvent
HTMLFrameHyperlinkEvent is used to notify interested
parties that link was activated in a frame.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
HTMLFrameHyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL targetURL,
Element sourceElement,
java.lang.String targetFrame)
Creates a new object representing a hypertext link event. |
HTMLFrameHyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL targetURL,
java.lang.String targetFrame)
Creates a new object representing a html frame
hypertext link event. |
HTMLFrameHyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL targetURL,
java.lang.String desc,
Element sourceElement,
java.lang.String targetFrame)
Creates a new object representing a hypertext link event. |
HTMLFrameHyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL targetURL,
java.lang.String desc,
java.lang.String targetFrame)
Creates a new object representing a hypertext link event. |
Method Summary |
Element |
getSourceElement()
returns the element that corresponds to the source of the
event. |
java.lang.String |
getTarget()
returns the target for the link. |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
HTMLFrameHyperlinkEvent
public HTMLFrameHyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL targetURL,
java.lang.String targetFrame)
- Creates a new object representing a html frame
hypertext link event.
- Parameters:
source
- the object responsible for the eventtype
- the event typetargetURL
- the affected URLtargetFrame
- the Frame to display the document in
HTMLFrameHyperlinkEvent
public HTMLFrameHyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL targetURL,
java.lang.String desc,
java.lang.String targetFrame)
- Creates a new object representing a hypertext link event.
- Parameters:
source
- the object responsible for the eventtype
- the event typetargetURL
- the affected URLdesc
- a descriptiontargetFrame
- the Frame to display the document in
HTMLFrameHyperlinkEvent
public HTMLFrameHyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL targetURL,
Element sourceElement,
java.lang.String targetFrame)
- Creates a new object representing a hypertext link event.
- Parameters:
source
- the object responsible for the eventtype
- the event typetargetURL
- the affected URLsourceElement
- the element that corresponds to the source
of the eventtargetFrame
- the Frame to display the document in
HTMLFrameHyperlinkEvent
public HTMLFrameHyperlinkEvent(java.lang.Object source,
HyperlinkEvent.EventType type,
java.net.URL targetURL,
java.lang.String desc,
Element sourceElement,
java.lang.String targetFrame)
- Creates a new object representing a hypertext link event.
- Parameters:
source
- the object responsible for the eventtype
- the event typetargetURL
- the affected URLdesc
- a desriptionsourceElement
- the element that corresponds to the source
of the eventtargetFrame
- the Frame to display the document in
getSourceElement
public Element getSourceElement()
- returns the element that corresponds to the source of the
event. This would always be the leaf element whose
tag is HTML.Tag.FRAME.
getTarget
public java.lang.String getTarget()
- returns the target for the link.
Submit a bug or feature
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.