APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.swing.text.html

public final Class FormSubmitEvent

extends HTMLFrameHyperlinkEvent
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
javax.swing.text.*, java.net.URL

FormSubmitEvent is used to notify interested parties that a form was submitted.
Author
Denis Sharypov
Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
FormSubmitEvent.MethodType

Represents an HTML form method type.

Field Summary

Modifier and TypeField and Description
private String
private FormSubmitEvent.MethodType

Constructor Summary

AccessConstructor and Description
pack-priv
FormSubmitEvent(Object
the object responsible for the event
source
,
HyperlinkEvent.EventType
the event type
type
,
URL
the form action URL
targetURL
,
Element
the element that corresponds to the source of the event
sourceElement
,
String
the Frame to display the document in
targetFrame
,
FormSubmitEvent.MethodType
the form method type
method
,
String
the form submission data
data
)

Creates a new object representing an html form submit event.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the string representing the form submission data.
getData
()

Gets the form submission data.

public FormSubmitEvent.MethodType

Returns:

the form method type, either Method.GET or Method.POST.
getMethod
()

Gets the form method type.

Inherited from javax.swing.text.html.HTMLFrameHyperlinkEvent:
getTarget

Field Detail

databack to summary
private String data
methodback to summary
private FormSubmitEvent.MethodType method

Constructor Detail

FormSubmitEventback to summary
pack-priv FormSubmitEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, Element sourceElement, String targetFrame, FormSubmitEvent.MethodType method, String data)

Creates a new object representing an html form submit event.

Parameters
source:Object

the object responsible for the event

type:HyperlinkEvent.EventType

the event type

targetURL:URL

the form action URL

sourceElement:Element

the element that corresponds to the source of the event

targetFrame:String

the Frame to display the document in

method:FormSubmitEvent.MethodType

the form method type

data:String

the form submission data

Method Detail

getDataback to summary
public String getData()

Gets the form submission data.

Returns:String

the string representing the form submission data.

getMethodback to summary
public FormSubmitEvent.MethodType getMethod()

Gets the form method type.

Returns:FormSubmitEvent.MethodType

the form method type, either Method.GET or Method.POST.

javax.swing.text.html back to summary

public final Enum FormSubmitEvent.MethodType

extends Enum<FormSubmitEvent.MethodType>
Class Inheritance

Represents an HTML form method type.
Since
1.5

Field Summary

Modifier and TypeField and Description
public static final FormSubmitEvent.MethodType
GET

GET corresponds to the GET form method

public static final FormSubmitEvent.MethodType
POST

POST corresponds to the POST from method

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FormSubmitEvent.MethodType
public static FormSubmitEvent.MethodType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

GETback to summary
public static final FormSubmitEvent.MethodType GET

GET corresponds to the GET form method

POSTback to summary
public static final FormSubmitEvent.MethodType POST

POST corresponds to the POST from method

Constructor Detail

MethodTypeback to summary
private MethodType()

Method Detail

valueOfback to summary
public static FormSubmitEvent.MethodType valueOf(String name)
valuesback to summary
public static FormSubmitEvent.MethodType[] values()