|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.meterware.httpunit.scripting.ScriptableDelegate
com.meterware.httpunit.HTMLElementScriptable
com.meterware.httpunit.FormControl.Scriptable
implementation of Scriptable input elements
| Field Summary |
| Fields inherited from class com.meterware.httpunit.scripting.ScriptableDelegate |
NULL_SCRIPT_ENGINE |
| Constructor Summary | |
FormControl.Scriptable()
construct a Scriptable |
|
| Method Summary | |
void |
blur()
simulate blur |
void |
click()
allow calling click for this control |
void |
focus()
simulate focus; |
protected HTMLElement |
get_element()
|
java.lang.Object |
get(java.lang.String propertyName)
get the given property |
java.lang.String |
getAttribute(java.lang.String attributeName)
get the content of the given attribute |
java.lang.String |
getID()
get my ID |
java.lang.String |
getName()
get my Name |
boolean |
handleEvent(java.lang.String eventName)
Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined. |
void |
removeAttribute(java.lang.String attributeName)
remove the given attribute |
void |
sendOnChangeEvent()
allow firing a sendOnChangeEvent |
void |
set(java.lang.String propertyName,
java.lang.Object value)
set the given property to the given value |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object value)
set the given attribute to the given value |
| Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate |
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, runScript, setScriptEngine, supportsScriptLanguage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.meterware.httpunit.scripting.Input |
removeAttribute |
| Constructor Detail |
public FormControl.Scriptable()
| Method Detail |
public java.lang.String getName()
getName in interface NamedDelegatepublic java.lang.String getID()
getID in interface IdentifiedDelegatepublic java.lang.Object get(java.lang.String propertyName)
get in interface InputpropertyName - - the name of the property to get
public void set(java.lang.String propertyName,
java.lang.Object value)
set in interface Inputset in class ScriptableDelegatepropertyName - - the property to setvalue - - the value to use
public void setAttribute(java.lang.String attributeName,
java.lang.Object value)
setAttribute in interface InputattributeName - - the name of the attribute to setvalue - - the value to use
public void click()
throws java.io.IOException,
org.xml.sax.SAXException
click in interface Inputorg.xml.sax.SAXException
java.io.IOExceptionpublic void blur()
public void focus()
public void sendOnChangeEvent()
sendOnChangeEvent in interface Inputprotected HTMLElement get_element()
public java.lang.String getAttribute(java.lang.String attributeName)
attributeName -
public void removeAttribute(java.lang.String attributeName)
attributeName - public boolean handleEvent(java.lang.String eventName)
ScriptableDelegate
handleEvent in interface ScriptingEventHandlerhandleEvent in class ScriptableDelegateeventName - the name of the event for which a handler should be run.
|
Copyright © 2000-2008 Russell Gold. See license agreement for rights granted. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||