Class HTMLFormElementImpl

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
All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, HTMLElement, HTMLFormElement, Node, NodeList, TypeInfo

public class HTMLFormElementImpl extends HTMLElementImpl implements HTMLFormElement

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.
Version:
$Revision: 1029415 $ $Date: 2010-10-31 22:32:22 +0530 (Sun, 31 Oct 2010) $
Author:
Assaf Arkin
See Also:
  • Constructor Details

    • HTMLFormElementImpl

      public HTMLFormElementImpl(HTMLDocumentImpl owner, String name)
      Constructor requires owner document.
      Parameters:
      owner - The owner HTML document
  • Method Details

    • getElements

      public HTMLCollection getElements()
      Specified by:
      getElements in interface HTMLFormElement
    • getLength

      public int getLength()
      Description copied from class: org.apache.xerces.dom.ParentNode
      NodeList method: Count the immediate children of this node
      Specified by:
      getLength in interface HTMLFormElement
      Specified by:
      getLength in interface NodeList
      Overrides:
      getLength in class org.apache.xerces.dom.ParentNode
      Returns:
      int
      See Also:
      • ParentNode
    • getName

      public String getName()
      Specified by:
      getName in interface HTMLFormElement
    • setName

      public void setName(String name)
      Specified by:
      setName in interface HTMLFormElement
    • getAcceptCharset

      public String getAcceptCharset()
      Specified by:
      getAcceptCharset in interface HTMLFormElement
    • setAcceptCharset

      public void setAcceptCharset(String acceptCharset)
      Specified by:
      setAcceptCharset in interface HTMLFormElement
    • getAction

      public String getAction()
      Specified by:
      getAction in interface HTMLFormElement
    • setAction

      public void setAction(String action)
      Specified by:
      setAction in interface HTMLFormElement
    • getEnctype

      public String getEnctype()
      Specified by:
      getEnctype in interface HTMLFormElement
    • setEnctype

      public void setEnctype(String enctype)
      Specified by:
      setEnctype in interface HTMLFormElement
    • getMethod

      public String getMethod()
      Specified by:
      getMethod in interface HTMLFormElement
    • setMethod

      public void setMethod(String method)
      Specified by:
      setMethod in interface HTMLFormElement
    • getTarget

      public String getTarget()
      Specified by:
      getTarget in interface HTMLFormElement
    • setTarget

      public void setTarget(String target)
      Specified by:
      setTarget in interface HTMLFormElement
    • submit

      public void submit()
      Specified by:
      submit in interface HTMLFormElement
    • reset

      public void reset()
      Specified by:
      reset in interface HTMLFormElement
    • getChildNodes

      public NodeList getChildNodes()
      Description copied from class: org.apache.xerces.dom.ParentNode
      Obtain a NodeList enumerating all children of this node. If there are none, an (initially) empty NodeList is returned.

      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.

      Specified by:
      getChildNodes in interface Node
      Overrides:
      getChildNodes in class org.apache.xerces.dom.ParentNode
    • cloneNode

      public Node cloneNode(boolean deep)
      Explicit implementation of cloneNode() to ensure that cache used for getElements() gets cleared.
      Specified by:
      cloneNode in interface Node
      Overrides:
      cloneNode in class org.apache.xerces.dom.ElementImpl
      See Also: