Package com.inet.html
Class InetHtmlEditorKit.ExtendedHyperlinkEvent
java.lang.Object
java.util.EventObject
javax.swing.event.HyperlinkEvent
com.inet.html.InetHtmlEditorKit.ExtendedHyperlinkEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- InetHtmlEditorKit
An extended hyperlink event to support link targets
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.event.HyperlinkEvent
HyperlinkEvent.EventType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringOpen in a new windowstatic final StringOpen in a new window or tabstatic final StringOpen in the current windowFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionExtendedHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL u, String desc, Element sourceElement) Creates the event -
Method Summary
Methods inherited from class javax.swing.event.HyperlinkEvent
getDescription, getEventType, getInputEvent, getSourceElement, getURLMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
TARGET_TOP
Open in the current window- See Also:
-
TARGET_BLANK
Open in a new window- See Also:
-
TARGET_NEW_TAB
Open in a new window or tab- See Also:
-
-
Constructor Details
-
ExtendedHyperlinkEvent
public ExtendedHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL u, String desc, Element sourceElement) Creates the event- Parameters:
source- the object responsible for the eventtype- the event typeu- the affected URL. This may be null if a valid URL could not be created.desc- the description of the link. This may be useful when attempting to form a URL resulted in a MalformedURLException. The description provides the text used when attempting to form the URL.sourceElement- Element in the Document representing the
-
-
Method Details
-
setTarget
Sets the target of this link, like '_top' or '_blank'- Parameters:
target- the target identifier
-
getTarget
Returns the target identifier- Returns:
- the target identifier
-