|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.meterware.httpunit.scripting.ScriptableDelegate
An interface for objects which will be accessible via scripting.
Field Summary | |
static ScriptingEngine |
NULL_SCRIPT_ENGINE
a dummy ScriptingEngine implementation |
Constructor Summary | |
ScriptableDelegate()
|
Method Summary | |
void |
clearCaches()
|
boolean |
doEvent(java.lang.String eventScript)
Deprecated. since 1.7 - use doEventScript instead |
boolean |
doEventScript(java.lang.String eventScript)
Executes the specified scripted event. |
java.lang.Object |
evaluateExpression(java.lang.String urlString)
Evaluates the specified javascript expression, returning its value. |
java.lang.Object |
get(int index)
Returns the value of the index property. |
java.lang.Object |
get(java.lang.String propertyName)
Returns the value of the named property. |
protected ScriptableDelegate[] |
getDelegates(HTMLElement[] elements)
|
ScriptingEngine |
getScriptEngine()
|
ScriptingEngine |
getScriptEngine(ScriptableDelegate child)
|
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. |
java.lang.String |
runScript(java.lang.String language,
java.lang.String script)
Executes the specified script, returning any intended replacement text. |
void |
set(java.lang.String propertyName,
java.lang.Object value)
Sets the value of the named property. |
void |
setScriptEngine(ScriptingEngine scriptEngine)
Specifies the scripting engine to be used. |
boolean |
supportsScriptLanguage(java.lang.String language)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ScriptingEngine NULL_SCRIPT_ENGINE
Constructor Detail |
public ScriptableDelegate()
Method Detail |
public boolean supportsScriptLanguage(java.lang.String language)
supportsScriptLanguage
in interface ScriptingHandler
public boolean doEvent(java.lang.String eventScript)
doEvent
in interface ScriptingEventHandler
eventScript
- - the script to use
public boolean doEventScript(java.lang.String eventScript)
doEventScript
in interface ScriptingEventHandler
eventScript
- - the eventScript to execute
public boolean handleEvent(java.lang.String eventName)
handleEvent
in interface ScriptingEventHandler
eventName
- the name of the event for which a handler should be run.
public java.lang.String runScript(java.lang.String language, java.lang.String script)
runScript
in interface ScriptingHandler
public java.lang.Object evaluateExpression(java.lang.String urlString)
evaluateExpression
in interface ScriptingHandler
public void clearCaches()
clearCaches
in interface ScriptingHandler
public java.lang.Object get(java.lang.String propertyName)
public java.lang.Object get(int index)
public void set(java.lang.String propertyName, java.lang.Object value)
public void setScriptEngine(ScriptingEngine scriptEngine)
public ScriptingEngine getScriptEngine()
public ScriptingEngine getScriptEngine(ScriptableDelegate child)
protected ScriptableDelegate[] getDelegates(HTMLElement[] elements)
|
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 |