1 7 package javax.swing.text.html; 8 9 import javax.swing.text.*; 10 import java.net.URL ; 11 12 20 21 public class FormSubmitEvent extends HTMLFrameHyperlinkEvent { 22 23 30 public enum MethodType { GET, POST }; 31 32 44 FormSubmitEvent(Object source, EventType type, URL targetURL, 45 Element sourceElement, String targetFrame, 46 MethodType method, String data) { 47 super(source, type, targetURL, sourceElement, targetFrame); 48 this.method = method; 49 this.data = data; 50 } 51 52 53 59 public MethodType getMethod() { 60 return method; 61 } 62 63 68 public String getData() { 69 return data; 70 } 71 72 private MethodType method; 73 private String data; 74 } 75 | Popular Tags |