com.meterware.httpunit.dom
Class HTMLFormElementImpl

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by com.meterware.httpunit.javascript.ScriptingEngineImpl
          extended by com.meterware.httpunit.dom.AbstractDomComponent
              extended by com.meterware.httpunit.dom.NodeImpl
                  extended by com.meterware.httpunit.dom.NamespaceAwareNodeImpl
                      extended by com.meterware.httpunit.dom.ElementImpl
                          extended by com.meterware.httpunit.dom.HTMLElementImpl
                              extended by com.meterware.httpunit.dom.HTMLFormElementImpl
All Implemented Interfaces:
FormScriptable, ScriptingEngine, ScriptingEventHandler, ScriptingHandler, java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable, org.w3c.dom.Element, org.w3c.dom.html.HTMLElement, org.w3c.dom.html.HTMLFormElement, org.w3c.dom.Node

public class HTMLFormElementImpl
extends HTMLElementImpl
implements org.w3c.dom.html.HTMLFormElement, FormScriptable

Author:
Russell Gold
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.meterware.httpunit.dom.HTMLElementImpl
UNSPECIFIED_ATTRIBUTE
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
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
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
HTMLFormElementImpl()
           
 
Method Summary
 java.lang.Object get(java.lang.String propertyName, org.mozilla.javascript.Scriptable scriptable)
           
 java.lang.String getAcceptCharset()
           
 java.lang.String getAction()
           
 org.w3c.dom.html.HTMLCollection getElements()
           
 java.lang.String getEnctype()
           
 int getLength()
           
 java.lang.String getMethod()
           
 java.lang.String getName()
          getter for the name
 java.lang.String getTarget()
           
 void reset()
           
 void setAcceptCharset(java.lang.String acceptCharset)
           
 void setAction(java.lang.String action)
          set the action
 void setEnctype(java.lang.String enctype)
           
 void setMethod(java.lang.String method)
           
 void setName(java.lang.String name)
           
 void setParameterValue(java.lang.String name, java.lang.String value)
          set the value of a parameter
 void setTarget(java.lang.String target)
           
 void submit()
           
 
Methods inherited from class com.meterware.httpunit.dom.HTMLElementImpl
click, doClickAction, getAttributeWithDefault, getAttributeWithNoDefault, getBooleanAttribute, getClassName, getDir, getElementsByTagName, getId, getIntegerAttribute, getIntegerAttribute, getLang, getTitle, setAttribute, setAttribute, setClassName, setDir, setId, setLang, setTitle
 
Methods inherited from class com.meterware.httpunit.dom.ElementImpl
addDomListener, createElement, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagNameNS, getNodeType, getNodeValue, getSchemaTypeInfo, handleEvent, hasAttribute, hasAttributeNS, hasAttributes, importNode, removeAttribute, removeAttributeNode, removeAttributeNS, reportPropertyChanged, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue
 
Methods inherited from class com.meterware.httpunit.dom.NamespaceAwareNodeImpl
getLocalName, getNamespaceURI, getNodeName, getTagName, initialize, initialize
 
Methods inherited from class com.meterware.httpunit.dom.NodeImpl
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildIfPermitted, getChildNodes, getElementsByTagNames, getFeature, getFirstChild, getJavaPropertyName, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, initialize, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, preOrderIterator, preOrderIterator, preOrderIteratorAfterNode, preOrderIteratorAfterNode, removeChild, replaceChild, setPrefix, setTextContent, setUserData
 
Methods inherited from class com.meterware.httpunit.dom.AbstractDomComponent
clearCaches, createAnonymousFunctionName, has, newScriptingEngine, put
 
Methods inherited from class com.meterware.httpunit.javascript.ScriptingEngineImpl
clearErrorMessages, discardDocumentWriteBuffer, doEvent, doEventScript, evaluateExpression, getDocumentWriteBuffer, getErrorMessages, handleScriptException, runScript, supportsScriptLanguage
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.html.HTMLElement
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
 
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
 
Methods inherited from interface com.meterware.httpunit.scripting.ScriptingEventHandler
doEvent, doEventScript, handleEvent
 
Methods inherited from interface org.mozilla.javascript.Scriptable
delete, delete, get, getDefaultValue, getIds, getParentScope, getPrototype, has, hasInstance, put, setParentScope, setPrototype
 

Constructor Detail

HTMLFormElementImpl

public HTMLFormElementImpl()
Method Detail

get

public java.lang.Object get(java.lang.String propertyName,
                            org.mozilla.javascript.Scriptable scriptable)
Specified by:
get in interface org.mozilla.javascript.Scriptable
Overrides:
get in class AbstractDomComponent

getAcceptCharset

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

setAcceptCharset

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

getAction

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

setAction

public void setAction(java.lang.String action)
Description copied from interface: FormScriptable
set the action

Specified by:
setAction in interface FormScriptable
Specified by:
setAction in interface org.w3c.dom.html.HTMLFormElement

setParameterValue

public void setParameterValue(java.lang.String name,
                              java.lang.String value)
Description copied from interface: FormScriptable
set the value of a parameter

Specified by:
setParameterValue in interface FormScriptable
Parameters:
name - - the name of the parameter to set
value - - the value to use for the parameter

getEnctype

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

setEnctype

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

getMethod

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

setMethod

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

getName

public java.lang.String getName()
getter for the name

Specified by:
getName in interface org.w3c.dom.html.HTMLFormElement
See Also:
HTMLFormElement.getName()

setName

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

getTarget

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

setTarget

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

getElements

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

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.html.HTMLFormElement

reset

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

submit

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


Copyright © 2011. All Rights Reserved.