|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.html.dom.HTMLElementImpl
org.apache.html.dom.HTMLFormElementImpl
public class HTMLFormElementImpl
HTMLFormElement,
ElementImpl,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface org.w3c.dom.TypeInfo |
|---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
| Constructor Summary | |
|---|---|
HTMLFormElementImpl(HTMLDocumentImpl owner,
java.lang.String name)
Constructor requires owner document. |
|
| Method Summary | |
|---|---|
Node |
cloneNode(boolean deep)
Explicit implementation of cloneNode() to ensure that cache used for getElements() gets cleared. |
java.lang.String |
getAcceptCharset()
List of character sets supported by the server. |
java.lang.String |
getAction()
Server-side form handler. |
NodeList |
getChildNodes()
Obtain a NodeList enumerating all children of this node. |
HTMLCollection |
getElements()
Returns a collection of all control elements in the form. |
java.lang.String |
getEnctype()
The content type of the submitted form, generally "application/x-www-form-urlencoded". |
int |
getLength()
NodeList method: Count the immediate children of this node |
java.lang.String |
getMethod()
HTTP method used to submit form. |
java.lang.String |
getName()
Names the form. |
java.lang.String |
getTarget()
Frame to render the resource in. |
void |
reset()
Restores a form element's default values. |
void |
setAcceptCharset(java.lang.String acceptCharset)
|
void |
setAction(java.lang.String action)
|
void |
setEnctype(java.lang.String enctype)
|
void |
setMethod(java.lang.String method)
|
void |
setName(java.lang.String name)
|
void |
setTarget(java.lang.String target)
|
void |
submit()
Submits the form. |
| Methods inherited from class org.apache.html.dom.HTMLElementImpl |
|---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getClassName, getDir, getElementsByTagName, getElementsByTagNameNS, getForm, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle |
| Methods inherited from class org.apache.xerces.dom.ElementImpl |
|---|
getAttributes, getBaseURI, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getTypeName, getTypeNamespace, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly |
| Methods inherited from class org.apache.xerces.dom.ParentNode |
|---|
getFirstChild, getLastChild, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent |
| Methods inherited from class org.apache.xerces.dom.ChildNode |
|---|
getNextSibling, getParentNode, getPreviousSibling |
| Methods inherited from class org.apache.xerces.dom.NodeImpl |
|---|
addEventListener, appendChild, compareDocumentPosition, compareTreePosition, dispatchEvent, getFeature, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserData, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.html.HTMLElement |
|---|
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle |
| Methods inherited from interface org.w3c.dom.Element |
|---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Constructor Detail |
|---|
public HTMLFormElementImpl(HTMLDocumentImpl owner,
java.lang.String name)
owner - The owner HTML document| Method Detail |
|---|
public HTMLCollection getElements()
HTMLFormElement
getElements in interface HTMLFormElementpublic int getLength()
ParentNode
getLength in interface HTMLFormElementgetLength in interface NodeListgetLength in class ParentNodeParentNodepublic java.lang.String getName()
HTMLFormElement
getName in interface HTMLFormElementpublic void setName(java.lang.String name)
setName in interface HTMLFormElementpublic java.lang.String getAcceptCharset()
HTMLFormElement
getAcceptCharset in interface HTMLFormElementpublic void setAcceptCharset(java.lang.String acceptCharset)
setAcceptCharset in interface HTMLFormElementpublic java.lang.String getAction()
HTMLFormElement
getAction in interface HTMLFormElementpublic void setAction(java.lang.String action)
setAction in interface HTMLFormElementpublic java.lang.String getEnctype()
HTMLFormElement
getEnctype in interface HTMLFormElementpublic void setEnctype(java.lang.String enctype)
setEnctype in interface HTMLFormElementpublic java.lang.String getMethod()
HTMLFormElement
getMethod in interface HTMLFormElementpublic void setMethod(java.lang.String method)
setMethod in interface HTMLFormElementpublic java.lang.String getTarget()
HTMLFormElement
getTarget in interface HTMLFormElementpublic void setTarget(java.lang.String target)
setTarget in interface HTMLFormElementpublic void submit()
HTMLFormElement
submit in interface HTMLFormElementpublic void reset()
HTMLFormElement
reset in interface HTMLFormElementpublic NodeList getChildNodes()
ParentNodeNodeLists are "live"; as children are added/removed the NodeList will immediately reflect those changes. Also, the NodeList refers to the actual nodes, so changes to those nodes made via the DOM tree will be reflected in the NodeList and vice versa.
In this implementation, Nodes implement the NodeList interface and provide their own getChildNodes() support. Other DOMs may solve this differently.
getChildNodes in interface NodegetChildNodes in class ParentNodepublic Node cloneNode(boolean deep)
cloneNode in interface NodecloneNode in class ElementImpldeep - 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).
Node.cloneNode(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||