javax.swing.text.html

Class FormSubmitEvent

Implemented Interfaces:
Serializable

public class FormSubmitEvent
extends HTMLFrameHyperlinkEvent

FormSubmitEvent is used to notify interested parties that a form was submited.
Since:
1.5
See Also:
Serialized Form

Nested Class Summary

class
FormSubmitEvent.MethodType
Represents an HTML form method type.

Nested classes/interfaces inherited from class javax.swing.event.HyperlinkEvent

HyperlinkEvent.EventType

Field Summary

Fields inherited from class java.util.EventObject

source

Method Summary

String
getData()
Gets the form submission data.
FormSubmitEvent.MethodType
getMethod()
Gets the form method type.

Methods inherited from class javax.swing.text.html.HTMLFrameHyperlinkEvent

getTarget

Methods inherited from class javax.swing.event.HyperlinkEvent

getDescription, getEventType, getSourceElement, getURL

Methods inherited from class java.util.EventObject

getSource, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

getData

public String getData()
Gets the form submission data.
Returns:
the string representing the form submission data.

getMethod

public FormSubmitEvent.MethodType getMethod()
Gets the form method type.
Returns:
the form method type, either Method.GET or Method.POST.
Usages and Demos :

View More Examples of getMethod()
   1: import javax.swing.event.HyperlinkListener;
   2: import javax.swing.text.html.FormSubmitEvent;
   3: 
   4:         ...
   5:       {
   6:         if (event instanceof FormSubmitEvent)
   7:           {
   8:         ...
   9:             submitForm((FormSubmitEvent) event);
  10:           }
  11:         ...
  12:     String data = ev.getData();
  13:     FormSubmitEvent.MethodType method = ev.getMethod();

View Full Code Here