< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/FormSubmitEvent.java

Print this page




  66      * @param targetURL the form action URL
  67      * @param sourceElement the element that corresponds to the source
  68      *                      of the event
  69      * @param targetFrame the Frame to display the document in
  70      * @param method the form method type
  71      * @param data the form submission data
  72      */
  73     FormSubmitEvent(Object source, EventType type, URL targetURL,
  74                    Element sourceElement, String targetFrame,
  75                     MethodType method, String data) {
  76         super(source, type, targetURL, sourceElement, targetFrame);
  77         this.method = method;
  78         this.data = data;
  79     }
  80 
  81 
  82     /**
  83      * Gets the form method type.
  84      *
  85      * @return the form method type, either
  86      * <code>Method.GET</code> or <code>Method.POST</code>.
  87      */
  88     public MethodType getMethod() {
  89         return method;
  90     }
  91 
  92     /**
  93      * Gets the form submission data.
  94      *
  95      * @return the string representing the form submission data.
  96      */
  97     public String getData() {
  98         return data;
  99     }
 100 
 101     private MethodType method;
 102     private String data;
 103 }


  66      * @param targetURL the form action URL
  67      * @param sourceElement the element that corresponds to the source
  68      *                      of the event
  69      * @param targetFrame the Frame to display the document in
  70      * @param method the form method type
  71      * @param data the form submission data
  72      */
  73     FormSubmitEvent(Object source, EventType type, URL targetURL,
  74                    Element sourceElement, String targetFrame,
  75                     MethodType method, String data) {
  76         super(source, type, targetURL, sourceElement, targetFrame);
  77         this.method = method;
  78         this.data = data;
  79     }
  80 
  81 
  82     /**
  83      * Gets the form method type.
  84      *
  85      * @return the form method type, either
  86      * {@code Method.GET} or {@code Method.POST}.
  87      */
  88     public MethodType getMethod() {
  89         return method;
  90     }
  91 
  92     /**
  93      * Gets the form submission data.
  94      *
  95      * @return the string representing the form submission data.
  96      */
  97     public String getData() {
  98         return data;
  99     }
 100 
 101     private MethodType method;
 102     private String data;
 103 }
< prev index next >