Top Fields Constructors Methods
org.apache.html.dom

public Class HTMLFormElementImpl

extends HTMLElementImpl
implements HTMLFormElement
Class Inheritance
All Implemented Interfaces
org.w3c.dom.html.HTMLFormElement, org.w3c.dom.html.HTMLElement, org.w3c.dom.Element, org.w3c.dom.Node
Imports
org.w3c.dom.Node, .NodeList, org.w3c.dom.html.HTMLCollection, .HTMLFormElement

Author
Assaf Arkin
Version
$Revision: 1029415 $ $Date: 2010-10-31 22:32:22 +0530 (Sun, 31 Oct 2010) $
See Also
org.w3c.dom.html.HTMLFormElement, org.apache.xerces.dom.ElementImpl

Field Summary

Modifier and TypeField and Description
private HTMLCollectionImpl
_elements

Collection of all elements contained in this FORM.

private static final long

Constructor Summary

AccessConstructor and Description
public
HTMLFormElementImpl(HTMLDocumentImpl
The owner HTML document
owner
,
String name)

Constructor requires owner document.

Method Summary

Modifier and TypeMethod and Description
public Node
cloneNode(boolean
If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element).
deep
)

Overrides org.apache.xerces.dom.ElementImpl.cloneNode.

Implements org.w3c.dom.Node.cloneNode.

Explicit implementation of cloneNode() to ensure that cache used for getElements() gets cleared.
public String
getAcceptCharset()

Implements org.w3c.dom.html.HTMLFormElement.getAcceptCharset.

List of character sets supported by the server.
public String
getAction()

Implements org.w3c.dom.html.HTMLFormElement.getAction.

Server-side form handler.
public NodeList
getChildNodes()

Overrides org.apache.xerces.dom.ParentNode.getChildNodes.

Implements org.w3c.dom.Node.getChildNodes.

A NodeList that contains all children of this node.
public HTMLCollection
getElements()

Implements org.w3c.dom.html.HTMLFormElement.getElements.

Returns a collection of all control elements in the form.
public String
getEnctype()

Implements org.w3c.dom.html.HTMLFormElement.getEnctype.

The content type of the submitted form, generally "application/x-www-form-urlencoded".
public int
public String
getMethod()

Implements org.w3c.dom.html.HTMLFormElement.getMethod.

HTTP method used to submit form.
public String
public String
getTarget()

Implements org.w3c.dom.html.HTMLFormElement.getTarget.

Frame to render the resource in. See the target attribute definition in HTML 4.0.
public void
reset()

Implements org.w3c.dom.html.HTMLFormElement.reset.

Restores a form element's default values.
public void
public void
public void
public void
public void
public void
public void
submit()

Implements org.w3c.dom.html.HTMLFormElement.submit.

Submits the form.
Inherited from org.apache.html.dom.HTMLElementImpl:
capitalizegetAttributegetAttributeNodegetAttributeNodeNSgetAttributeNSgetBinarygetCapitalizedgetClassNamegetDirgetElementsByTagNamegetElementsByTagNameNSgetFormgetIdgetIntegergetLanggetTitlesetAttributesetClassNamesetDirsetIdsetLangsetTitle

Field Detail

_elementsback to summary
private HTMLCollectionImpl _elements

Collection of all elements contained in this FORM.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.html.dom.HTMLElementImpl.serialVersionUID.

Constructor Detail

HTMLFormElementImplback to summary
public HTMLFormElementImpl(HTMLDocumentImpl owner, String name)

Constructor requires owner document.

Parameters
owner:HTMLDocumentImpl

The owner HTML document

Method Detail

cloneNodeback to summary
public Node cloneNode(boolean deep)

Overrides org.apache.xerces.dom.ElementImpl.cloneNode.

Implements org.w3c.dom.Node.cloneNode.

Explicit implementation of cloneNode() to ensure that cache used for getElements() gets cleared.

Parameters
deep:boolean

Doc from org.w3c.dom.Node.cloneNode.

If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element).

Returns:Node

Doc from org.w3c.dom.Node.cloneNode.

The duplicate node.

getAcceptCharsetback to summary
public String getAcceptCharset()

Implements org.w3c.dom.html.HTMLFormElement.getAcceptCharset.

Doc from org.w3c.dom.html.HTMLFormElement.getAcceptCharset.

List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.0.

getActionback to summary
public String getAction()

Implements org.w3c.dom.html.HTMLFormElement.getAction.

Doc from org.w3c.dom.html.HTMLFormElement.getAction.

Server-side form handler. See the action attribute definition in HTML 4.0.

getChildNodesback to summary
public NodeList getChildNodes()

Overrides org.apache.xerces.dom.ParentNode.getChildNodes.

Implements org.w3c.dom.Node.getChildNodes.

Doc from org.w3c.dom.Node.getChildNodes.

A NodeList that contains all children of this node. If there are no children, this is a NodeList containing no nodes.

getElementsback to summary
public HTMLCollection getElements()

Implements org.w3c.dom.html.HTMLFormElement.getElements.

Doc from org.w3c.dom.html.HTMLFormElement.getElements.

Returns a collection of all control elements in the form.

getEnctypeback to summary
public String getEnctype()

Implements org.w3c.dom.html.HTMLFormElement.getEnctype.

Doc from org.w3c.dom.html.HTMLFormElement.getEnctype.

The content type of the submitted form, generally "application/x-www-form-urlencoded". See the enctype attribute definition in HTML 4.0.

getLengthback to summary
public int getLength()

Overrides org.apache.xerces.dom.ParentNode.getLength.

Implements org.w3c.dom.html.HTMLFormElement.getLength, org.w3c.dom.NodeList.getLength.

Doc from org.w3c.dom.html.HTMLFormElement.getLength.

The number of form controls in the form.

Returns:int

Doc from org.apache.xerces.dom.ParentNode.getLength.

int

getMethodback to summary
public String getMethod()

Implements org.w3c.dom.html.HTMLFormElement.getMethod.

Doc from org.w3c.dom.html.HTMLFormElement.getMethod.

HTTP method used to submit form. See the method attribute definition in HTML 4.0.

getNameback to summary
public String getName()

Implements org.w3c.dom.html.HTMLFormElement.getName.

Doc from org.w3c.dom.html.HTMLFormElement.getName.

Names the form.

getTargetback to summary
public String getTarget()

Implements org.w3c.dom.html.HTMLFormElement.getTarget.

Doc from org.w3c.dom.html.HTMLFormElement.getTarget.

Frame to render the resource in. See the target attribute definition in HTML 4.0.

resetback to summary
public void reset()

Implements org.w3c.dom.html.HTMLFormElement.reset.

Doc from org.w3c.dom.html.HTMLFormElement.reset.

Restores a form element's default values. It performs the same action as a reset button.

setAcceptCharsetback to summary
public void setAcceptCharset(String acceptCharset)

Implements org.w3c.dom.html.HTMLFormElement.setAcceptCharset.

setActionback to summary
public void setAction(String action)

Implements org.w3c.dom.html.HTMLFormElement.setAction.

setEnctypeback to summary
public void setEnctype(String enctype)

Implements org.w3c.dom.html.HTMLFormElement.setEnctype.

setMethodback to summary
public void setMethod(String method)

Implements org.w3c.dom.html.HTMLFormElement.setMethod.

setNameback to summary
public void setName(String name)

Implements org.w3c.dom.html.HTMLFormElement.setName.

setTargetback to summary
public void setTarget(String target)

Implements org.w3c.dom.html.HTMLFormElement.setTarget.

submitback to summary
public void submit()

Implements org.w3c.dom.html.HTMLFormElement.submit.

Doc from org.w3c.dom.html.HTMLFormElement.submit.

Submits the form. It performs the same action as a submit button.