FileDocCategorySizeDatePackage
HTMLFormElementImpl.javaAPI DocApache Xerces 3.0.14237Fri Sep 14 20:33:52 BST 2007org.apache.html.dom

HTMLFormElementImpl

public class HTMLFormElementImpl extends HTMLElementImpl implements HTMLFormElement
xerces.internal
version
$Revision: 447255 $ $Date: 2006-09-18 01:36:42 -0400 (Mon, 18 Sep 2006) $
author
Assaf Arkin
see
org.w3c.dom.html.HTMLFormElement
see
org.apache.xerces.dom.ElementImpl

Fields Summary
private static final long
serialVersionUID
private HTMLCollectionImpl
_elements
Collection of all elements contained in this FORM.
Constructors Summary
public HTMLFormElementImpl(HTMLDocumentImpl owner, String name)
Constructor requires owner document.

param
owner The owner HTML document

        super( owner, name );
    
Methods Summary
public org.w3c.dom.NodecloneNode(boolean deep)
Explicit implementation of cloneNode() to ensure that cache used for getElements() gets cleared.

        HTMLFormElementImpl clonedNode = (HTMLFormElementImpl)super.cloneNode( deep );
        clonedNode._elements = null;
        return clonedNode;
    
public java.lang.StringgetAcceptCharset()

        return getAttribute( "accept-charset" );
    
public java.lang.StringgetAction()

        return getAttribute( "action" );
    
public org.w3c.dom.NodeListgetChildNodes()

        return getChildNodesUnoptimized();
    
public org.w3c.dom.html.HTMLCollectiongetElements()


      
    
        if ( _elements == null )
            _elements = new HTMLCollectionImpl( this, HTMLCollectionImpl.ELEMENT );
        return _elements;
    
public java.lang.StringgetEnctype()

        return getAttribute( "enctype" );
    
public intgetLength()

        return getElements().getLength();
    
public java.lang.StringgetMethod()

        return capitalize( getAttribute( "method" ) );
    
public java.lang.StringgetName()

        return getAttribute( "name" );
    
public java.lang.StringgetTarget()

        return getAttribute( "target" );
    
public voidreset()

        // No scripting in server-side DOM. This method is moot.
    
public voidsetAcceptCharset(java.lang.String acceptCharset)

        setAttribute( "accept-charset", acceptCharset );
    
public voidsetAction(java.lang.String action)

        setAttribute( "action", action );
    
public voidsetEnctype(java.lang.String enctype)

        setAttribute( "enctype", enctype );
    
public voidsetMethod(java.lang.String method)

        setAttribute( "method", method );
    
public voidsetName(java.lang.String name)

        setAttribute( "name", name );
    
public voidsetTarget(java.lang.String target)

        setAttribute( "target", target );
    
public voidsubmit()

        // No scripting in server-side DOM. This method is moot.