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
FieldsFields inherited from class com.google.gwt.dom.client.Element
DRAGGABLE_AUTO, DRAGGABLE_FALSE, DRAGGABLE_TRUEFields inherited from class com.google.gwt.dom.client.Node
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FormElementAssert that the givenElementis compatible with this class and automatically typecast it.final StringList of character sets supported by the server.final StringServer-side form handler.final NodeCollection<Element>Returns a collection of all form control elements in the form.final StringThe content type of the submitted form, generally "application/x-www-form-urlencoded".final StringHTTP method [IETF RFC 2616] used to submit form.final StringgetName()Names the form.final StringFrame to render the resource in.static booleanDetermines whether the givenJavaScriptObjectcan be cast to this class.static booleanDetermine whether the givenElementcan be cast to this class.static booleanDetermine whether the givenNodecan be cast to this class.final voidreset()Restores a form element's default values.final voidsetAcceptCharset(String acceptCharset) List of character sets supported by the server.final voidServer-side form handler.final voidServer-side form handler.final voidsetEnctype(String enctype) The content type of the submitted form, generally "application/x-www-form-urlencoded".final voidHTTP method [IETF RFC 2616] used to submit form.final voidNames the form.final voidFrame to render the resource in.final voidsubmit()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, toggleClassNameMethods 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, setNodeValueMethods 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 givenElementis compatible with this class and automatically typecast it. -
is
Determines whether the givenJavaScriptObjectcan be cast to this class. Anullobject will cause this method to returnfalse. -
is
Determine whether the givenNodecan be cast to this class. Anullnode will cause this method to returnfalse. -
is
Determine whether the givenElementcan be cast to this class. Anullnode 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.
-