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

public static class InetHtmlEditorKit.ExtendedHyperlinkEvent extends HyperlinkEvent
An extended hyperlink event to support link targets
See Also:
  • Field Details

  • 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 event
      type - the event type
      u - 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

      public void setTarget(String target)
      Sets the target of this link, like '_top' or '_blank'
      Parameters:
      target - the target identifier
    • getTarget

      public String getTarget()
      Returns the target identifier
      Returns:
      the target identifier