|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 FormField 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 documentMethod Detail |
---|
public HTMLCollection getElements()
HTMLFormElement
getElements
in interface HTMLFormElement
public int getLength()
ParentNode
getLength
in interface HTMLFormElement
getLength
in interface NodeList
getLength
in class ParentNode
ParentNode
public java.lang.String getName()
HTMLFormElement
getName
in interface HTMLFormElement
public void setName(java.lang.String name)
setName
in interface HTMLFormElement
public java.lang.String getAcceptCharset()
HTMLFormElement
getAcceptCharset
in interface HTMLFormElement
public void setAcceptCharset(java.lang.String acceptCharset)
setAcceptCharset
in interface HTMLFormElement
public java.lang.String getAction()
HTMLFormElement
getAction
in interface HTMLFormElement
public void setAction(java.lang.String action)
setAction
in interface HTMLFormElement
public java.lang.String getEnctype()
HTMLFormElement
getEnctype
in interface HTMLFormElement
public void setEnctype(java.lang.String enctype)
setEnctype
in interface HTMLFormElement
public java.lang.String getMethod()
HTMLFormElement
getMethod
in interface HTMLFormElement
public void setMethod(java.lang.String method)
setMethod
in interface HTMLFormElement
public java.lang.String getTarget()
HTMLFormElement
getTarget
in interface HTMLFormElement
public void setTarget(java.lang.String target)
setTarget
in interface HTMLFormElement
public void submit()
HTMLFormElement
submit
in interface HTMLFormElement
public void reset()
HTMLFormElement
reset
in interface HTMLFormElement
public NodeList getChildNodes()
ParentNode
NodeLists 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 Node
getChildNodes
in class ParentNode
public Node cloneNode(boolean deep)
cloneNode
in interface Node
cloneNode
in class ElementImpl
deep
- 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 |