FileDocCategorySizeDatePackage
HTMLFormElementImpl.javaAPI DocJava SE 5 API5525Fri Aug 26 14:55:26 BST 2005com.sun.org.apache.html.internal.dom

HTMLFormElementImpl

public class HTMLFormElementImpl extends HTMLElementImpl implements HTMLFormElement
version
$Revision: 1.7 $ $Date: 2003/05/08 20:13:09 $
author
Assaf Arkin
see
org.w3c.dom.html.HTMLFormElement
see
com.sun.org.apache.xerces.internal.dom.ElementImpl

Fields Summary
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 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.