Class WebForm.Scriptable
java.lang.Object
com.meterware.httpunit.scripting.ScriptableDelegate
com.meterware.httpunit.WebForm.Scriptable
- All Implemented Interfaces:
DocumentElement, FormScriptable, NamedDelegate, ScriptingEventHandler, ScriptingHandler
- Enclosing class:
WebForm
- Author:
- Russell Gold
-
Field Summary
Fields inherited from class ScriptableDelegate
NULL_SCRIPT_ENGINE -
Method Summary
Modifier and TypeMethodDescriptionget the Object for the given propertyNameprotected HTMLElementgetAttribute(String attributeName) get the content of the given attributegetElementsByTagName(String name) getName()booleanhandleEvent(String eventName) Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined.voidremoveAttribute(String attributeName) remove the given attributevoidreset()voidSets the value of the named property.voidset the actionvoidsetAttribute(String attributeName, Object value) set the attribute with the given attribute name to the given valuevoidsetParameterValue(String name, String value) set the value of a parametervoidsubmit()Methods inherited from class ScriptableDelegate
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, runScript, setScriptEngine, supportsScriptLanguageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ScriptingEventHandler
doEvent, doEventScript, handleEvent
-
Method Details
-
getAction
-
setAction
Description copied from interface:FormScriptableset the action- Specified by:
setActionin interfaceFormScriptable- Parameters:
newAction-
-
submit
- Throws:
IOExceptionSAXException
-
reset
- Throws:
IOExceptionSAXException
-
getName
- Specified by:
getNamein interfaceNamedDelegate
-
get
-
set
Sets the value of the named property. Will throw a runtime exception if the property does not exist or cannot accept the specified value.- Overrides:
setin classScriptableDelegate- Parameters:
propertyName- - the name of the propertyvalue- - the new value
-
setParameterValue
Description copied from interface:FormScriptableset the value of a parameter- Specified by:
setParameterValuein interfaceFormScriptable- Parameters:
name- - the name of the parameter to setvalue- - the value to use for the parameter
-
getElementDelegates
-
getElementsByTagName
- Throws:
SAXException
-
get_element
- Returns:
- the _element
-
getAttribute
-
setAttribute
-
removeAttribute
remove the given attribute- Parameters:
attributeName-
-
handleEvent
Description copied from class:ScriptableDelegateExecutes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined.- Specified by:
handleEventin interfaceScriptingEventHandler- Overrides:
handleEventin classScriptableDelegate- Parameters:
eventName- the name of the event for which a handler should be run.- Returns:
- whether the event with the given name was handled
-