1 7 package javax.swing.text.html; 8 9 import javax.swing.text.*; 10 import javax.swing.event.HyperlinkEvent ; 11 import java.net.URL ; 12 13 20 21 public class HTMLFrameHyperlinkEvent extends HyperlinkEvent { 22 23 32 public HTMLFrameHyperlinkEvent(Object source, EventType type, URL targetURL, 33 String targetFrame) { 34 super(source, type, targetURL); 35 this.targetFrame = targetFrame; 36 } 37 38 39 48 public HTMLFrameHyperlinkEvent(Object source, EventType type, URL targetURL, String desc, 49 String targetFrame) { 50 super(source, type, targetURL, desc); 51 this.targetFrame = targetFrame; 52 } 53 54 64 public HTMLFrameHyperlinkEvent(Object source, EventType type, URL targetURL, 65 Element sourceElement, String targetFrame) { 66 super(source, type, targetURL, null, sourceElement); 67 this.targetFrame = targetFrame; 68 } 69 70 71 82 public HTMLFrameHyperlinkEvent(Object source, EventType type, URL targetURL, String desc, 83 Element sourceElement, String targetFrame) { 84 super(source, type, targetURL, desc, sourceElement); 85 this.targetFrame = targetFrame; 86 } 87 88 91 public String getTarget() { 92 return targetFrame; 93 } 94 95 private String targetFrame; 96 } 97 | Popular Tags |