Package com.google.gwt.dom.client
Class FormElement
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.dom.client.Node
com.google.gwt.dom.client.Element
com.google.gwt.dom.client.FormElement
The FORM element encompasses behavior similar to a collection and an element.
It provides direct access to the contained form controls as well as the
attributes of the form element.
- See Also:
-
Field Summary
Fields inherited from class com.google.gwt.dom.client.Element
DRAGGABLE_AUTO, DRAGGABLE_FALSE, DRAGGABLE_TRUE
Fields inherited from class com.google.gwt.dom.client.Node
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormElement
Assert that the givenElement
is compatible with this class and automatically typecast it.final String
List of character sets supported by the server.final String
Server-side form handler.final NodeCollection
<Element> Returns a collection of all form control elements in the form.final String
The content type of the submitted form, generally "application/x-www-form-urlencoded".final String
HTTP method [IETF RFC 2616] used to submit form.final String
getName()
Names the form.final String
Frame to render the resource in.static boolean
Determines whether the givenJavaScriptObject
can be cast to this class.static boolean
Determine whether the givenElement
can be cast to this class.static boolean
Determine whether the givenNode
can be cast to this class.final void
reset()
Restores a form element's default values.final void
setAcceptCharset
(String acceptCharset) List of character sets supported by the server.final void
Server-side form handler.final void
Server-side form handler.final void
setEnctype
(String enctype) The content type of the submitted form, generally "application/x-www-form-urlencoded".final void
HTTP method [IETF RFC 2616] used to submit form.final void
Names the form.final void
Frame to render the resource in.final void
submit()
Submits the form.Methods inherited from class com.google.gwt.dom.client.Element
addClassName, as, as, blur, dispatchEvent, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getAttribute, getClassName, getClientHeight, getClientWidth, getDir, getDraggable, getElementsByTagName, getFirstChildElement, getId, getInnerHTML, getInnerText, getLang, getNextSiblingElement, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getPreviousSiblingElement, getPropertyBoolean, getPropertyDouble, getPropertyInt, getPropertyJSO, getPropertyObject, getPropertyString, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getString, getStyle, getTabIndex, getTagName, getTitle, hasAttribute, hasClassName, hasTagName, indexOfName, removeAttribute, removeClassName, replaceClassName, scrollIntoView, setAttribute, setClassName, setDir, setDraggable, setId, setInnerHTML, setInnerSafeHtml, setInnerText, setLang, setPropertyBoolean, setPropertyDouble, setPropertyInt, setPropertyJSO, setPropertyObject, setPropertyString, setScrollLeft, setScrollTop, setTabIndex, setTitle, toggleClassName
Methods inherited from class com.google.gwt.dom.client.Node
appendChild, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, isOrHasChild, removeAllChildren, removeChild, removeFromParent, replaceChild, setNodeValue
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Field Details
-
TAG
- See Also:
-
-
Constructor Details
-
FormElement
protected FormElement()
-
-
Method Details
-
as
Assert that the givenElement
is compatible with this class and automatically typecast it. -
is
Determines whether the givenJavaScriptObject
can be cast to this class. Anull
object will cause this method to returnfalse
. -
is
Determine whether the givenNode
can be cast to this class. Anull
node will cause this method to returnfalse
. -
is
Determine whether the givenElement
can be cast to this class. Anull
node will cause this method to returnfalse
. -
getAcceptCharset
List of character sets supported by the server.- See Also:
-
getAction
Server-side form handler.- See Also:
-
getElements
Returns a collection of all form control elements in the form. -
getEnctype
The content type of the submitted form, generally "application/x-www-form-urlencoded". Note: The onsubmit even handler is not guaranteed to be triggered when invoking this method. The behavior is inconsistent for historical reasons and authors should not rely on a particular one.- See Also:
-
getMethod
HTTP method [IETF RFC 2616] used to submit form.- See Also:
-
getName
Names the form. -
getTarget
Frame to render the resource in.- See Also:
-
reset
public final void reset()Restores a form element's default values. It performs the same action as a reset button. -
setAcceptCharset
List of character sets supported by the server.- See Also:
-
setAction
Server-side form handler.- See Also:
-
setEnctype
The content type of the submitted form, generally "application/x-www-form-urlencoded". Note: The onsubmit even handler is not guaranteed to be triggered when invoking this method. The behavior is inconsistent for historical reasons and authors should not rely on a particular one.- See Also:
-
setMethod
HTTP method [IETF RFC 2616] used to submit form.- See Also:
-
setName
Names the form. -
setTarget
Frame to render the resource in.- See Also:
-
submit
public final void submit()Submits the form. It performs the same action as a submit button.
-