Class HTMLFormElementImpl

All Implemented Interfaces:
Cloneable, Element, EventTarget, org.w3c.dom.html.HTMLElement, org.w3c.dom.html.HTMLFormElement, Node, NodeList, TypeInfo

public class HTMLFormElementImpl extends HTMLElementImpl implements org.w3c.dom.html.HTMLFormElement
See Also:
  • Field Details

    • elements_

      private HTMLCollectionImpl elements_
      Collection of all elements contained in this FORM.
  • Constructor Details

    • HTMLFormElementImpl

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

    • getElements

      public org.w3c.dom.html.HTMLCollection getElements()
      Specified by:
      getElements in interface org.w3c.dom.html.HTMLFormElement
    • getLength

      public int getLength()
      Description copied from class: ParentNode
      NodeList method: Count the immediate children of this node

      By default we do not have any children, ParentNode overrides this. NodeList method: Count the immediate children of this node

      Specified by:
      getLength in interface org.w3c.dom.html.HTMLFormElement
      Specified by:
      getLength in interface NodeList
      Overrides:
      getLength in class ParentNode
      Returns:
      int
    • getName

      public String getName()
      Specified by:
      getName in interface org.w3c.dom.html.HTMLFormElement
    • setName

      public void setName(String name)
      Specified by:
      setName in interface org.w3c.dom.html.HTMLFormElement
    • getAcceptCharset

      public String getAcceptCharset()
      Specified by:
      getAcceptCharset in interface org.w3c.dom.html.HTMLFormElement
    • setAcceptCharset

      public void setAcceptCharset(String acceptCharset)
      Specified by:
      setAcceptCharset in interface org.w3c.dom.html.HTMLFormElement
    • getAction

      public String getAction()
      Specified by:
      getAction in interface org.w3c.dom.html.HTMLFormElement
    • setAction

      public void setAction(String action)
      Specified by:
      setAction in interface org.w3c.dom.html.HTMLFormElement
    • getEnctype

      public String getEnctype()
      Specified by:
      getEnctype in interface org.w3c.dom.html.HTMLFormElement
    • setEnctype

      public void setEnctype(String enctype)
      Specified by:
      setEnctype in interface org.w3c.dom.html.HTMLFormElement
    • getMethod

      public String getMethod()
      Specified by:
      getMethod in interface org.w3c.dom.html.HTMLFormElement
    • setMethod

      public void setMethod(String method)
      Specified by:
      setMethod in interface org.w3c.dom.html.HTMLFormElement
    • getTarget

      public String getTarget()
      Specified by:
      getTarget in interface org.w3c.dom.html.HTMLFormElement
    • setTarget

      public void setTarget(String target)
      Specified by:
      setTarget in interface org.w3c.dom.html.HTMLFormElement
    • submit

      public void submit()
      Specified by:
      submit in interface org.w3c.dom.html.HTMLFormElement
    • reset

      public void reset()
      Specified by:
      reset in interface org.w3c.dom.html.HTMLFormElement
    • getChildNodes

      public NodeList getChildNodes()
      Description copied from class: 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. 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 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 ElementImpl
      See Also: