java.lang.Object
gnu.xml.dom.DomNode
gnu.xml.dom.DomNsNode
gnu.xml.dom.DomElement
gnu.xml.dom.html2.DomHTMLElement
gnu.xml.dom.html2.DomHTMLFormElement
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable, org.w3c.dom.events.DocumentEvent, org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.w3c.dom.html2.HTMLElement, org.w3c.dom.html2.HTMLFormElement, org.w3c.dom.Node, org.w3c.dom.NodeList
- public class DomHTMLFormElement
- extends DomHTMLElement
- implements org.w3c.dom.html2.HTMLFormElement
An HTML 'FORM' element node.
| Nested classes inherited from class gnu.xml.dom.DomNode |
|
| Fields inherited from class gnu.xml.dom.DomElement |
|
| Fields inherited from class gnu.xml.dom.DomNsNode |
|
| Fields inherited from class gnu.xml.dom.DomNode |
|
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Methods inherited from class gnu.xml.dom.html2.DomHTMLElement |
dispatchUIEvent, getBooleanHTMLAttribute, getChildElement, getClassName, getDir, getHTMLAttribute, getId, getIndex, getIntHTMLAttribute, getLang, getParentElement, getTitle, setBooleanHTMLAttribute, setClassName, setDir, setHTMLAttribute, setId, setIntHTMLAttribute, setLang, setTitle |
| Methods inherited from class gnu.xml.dom.DomElement |
clone, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, isDefaultNamespace, isEqualNode, lookupNamespaceURI, lookupPrefix, makeReadonly, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from class gnu.xml.dom.DomNode |
addEventListener, appendChild, cloneNode, compact, compareDocumentPosition, compareTo, createEvent, dispatchEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isReadonly, isSameNode, isSupported, item, list, nameAndTypeEquals, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setTextContent, setUserData, toString, trimToSize |
| 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, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, 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 |
DomHTMLFormElement
protected DomHTMLFormElement(DomHTMLDocument owner,
java.lang.String namespaceURI,
java.lang.String name)
getElements
public org.w3c.dom.html2.HTMLCollection getElements()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- Returns a collection of all form control elements in the form.
- Specified by:
getElements in interface org.w3c.dom.html2.HTMLFormElement
getLength
public int getLength()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- The number of form controls in the form.
- Specified by:
getLength in interface org.w3c.dom.html2.HTMLFormElement
getName
public java.lang.String getName()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- Names the form.
- Specified by:
getName in interface org.w3c.dom.html2.HTMLFormElement
setName
public void setName(java.lang.String name)
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- Names the form.
- Specified by:
setName in interface org.w3c.dom.html2.HTMLFormElement
getAcceptCharset
public java.lang.String getAcceptCharset()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- List of character sets supported by the server. See the accept-charset
attribute definition in HTML 4.01.
- Specified by:
getAcceptCharset in interface org.w3c.dom.html2.HTMLFormElement
setAcceptCharset
public void setAcceptCharset(java.lang.String acceptCharset)
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- List of character sets supported by the server. See the accept-charset
attribute definition in HTML 4.01.
- Specified by:
setAcceptCharset in interface org.w3c.dom.html2.HTMLFormElement
getAction
public java.lang.String getAction()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- Server-side form handler. See the action attribute definition in HTML
4.01.
- Specified by:
getAction in interface org.w3c.dom.html2.HTMLFormElement
setAction
public void setAction(java.lang.String action)
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- Server-side form handler. See the action attribute definition in HTML
4.01.
- Specified by:
setAction in interface org.w3c.dom.html2.HTMLFormElement
getEnctype
public java.lang.String getEnctype()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- The content type of the submitted form, generally
"application/x-www-form-urlencoded". See the enctype attribute
definition in HTML 4.01. 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.
- Specified by:
getEnctype in interface org.w3c.dom.html2.HTMLFormElement
setEnctype
public void setEnctype(java.lang.String enctype)
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- The content type of the submitted form, generally
"application/x-www-form-urlencoded". See the enctype attribute
definition in HTML 4.01. 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.
- Specified by:
setEnctype in interface org.w3c.dom.html2.HTMLFormElement
getMethod
public java.lang.String getMethod()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- HTTP method [IETF RFC 2616] used to submit form. See the method attribute definition
in HTML 4.01.
- Specified by:
getMethod in interface org.w3c.dom.html2.HTMLFormElement
setMethod
public void setMethod(java.lang.String method)
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- HTTP method [IETF RFC 2616] used to submit form. See the method attribute definition
in HTML 4.01.
- Specified by:
setMethod in interface org.w3c.dom.html2.HTMLFormElement
getTarget
public java.lang.String getTarget()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- Frame to render the resource in. See the target attribute definition in
HTML 4.01.
- Specified by:
getTarget in interface org.w3c.dom.html2.HTMLFormElement
setTarget
public void setTarget(java.lang.String target)
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- Frame to render the resource in. See the target attribute definition in
HTML 4.01.
- Specified by:
setTarget in interface org.w3c.dom.html2.HTMLFormElement
submit
public void submit()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- Submits the form. It performs the same action as a submit button.
- Specified by:
submit in interface org.w3c.dom.html2.HTMLFormElement
reset
public void reset()
- Description copied from interface:
org.w3c.dom.html2.HTMLFormElement
- Restores a form element's default values. It performs the same action
as a reset button.
- Specified by:
reset in interface org.w3c.dom.html2.HTMLFormElement