public static class JavaScript.Control extends ScriptingEngineImpl
Modifier and Type | Field and Description |
---|---|
protected com.meterware.httpunit.javascript.JavaScript.JavaScriptEngine |
_parent |
protected ScriptableDelegate |
_scriptable |
Constructor and Description |
---|
JavaScript.Control() |
Modifier and Type | Method and Description |
---|---|
void |
clearCaches()
Clears any cached values, permitting them to be recomputed as needed.
|
Object |
get(int i,
org.mozilla.javascript.Scriptable scriptable) |
Object |
get(String propertyName,
org.mozilla.javascript.Scriptable scriptable) |
String |
getClassName() |
boolean |
handleEvent(String eventName)
get the event Handler script for the event e.g.
|
boolean |
has(String propertyName,
org.mozilla.javascript.Scriptable scriptable) |
void |
jsFunction_click()
click via javascript
|
void |
jsFunction_focus() |
Object |
jsFunction_getAttribute(String attributeName)
Support getting value of arbitrary attribute
|
void |
jsFunction_onchange()
Allow calling onchange() from within a JavaScript function
|
void |
jsFunction_removeAttribute(String attributeName)
Support getting value of arbitrary attribute
|
void |
jsFunction_select() |
void |
jsFunction_setAttribute(String attributeName,
Object value)
Support getting value of arbitrary attribute
|
JavaScript.Form |
jsGet_form() |
ScriptingEngine |
newScriptingEngine(ScriptableDelegate child)
Returns a new scripting engine for the specified delegate.
|
void |
put(String propertyName,
org.mozilla.javascript.Scriptable scriptable,
Object value) |
protected JavaScript.ElementArray |
toElementArray(ScriptingHandler[] scriptables) |
String |
toString() |
protected static String |
toStringIfNotUndefined(Object object) |
clearErrorMessages, discardDocumentWriteBuffer, doEvent, doEventScript, evaluateExpression, getDocumentWriteBuffer, getErrorMessages, handleScriptException, runScript, supportsScriptLanguage
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, 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
protected ScriptableDelegate _scriptable
protected com.meterware.httpunit.javascript.JavaScript.JavaScriptEngine _parent
public String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public JavaScript.Form jsGet_form()
public void jsFunction_focus()
public void jsFunction_select()
public void jsFunction_click() throws IOException, SAXException
IOException
SAXException
public Object jsFunction_getAttribute(String attributeName) throws org.mozilla.javascript.JavaScriptException
org.mozilla.javascript.JavaScriptException
public void jsFunction_setAttribute(String attributeName, Object value) throws org.mozilla.javascript.JavaScriptException
org.mozilla.javascript.JavaScriptException
public void jsFunction_removeAttribute(String attributeName) throws org.mozilla.javascript.JavaScriptException
org.mozilla.javascript.JavaScriptException
public void jsFunction_onchange() throws org.mozilla.javascript.JavaScriptException
org.mozilla.javascript.JavaScriptException
public boolean handleEvent(String eventName)
handleEvent
in interface ScriptingEventHandler
handleEvent
in class ScriptingEngineImpl
eventName
- public boolean has(String propertyName, org.mozilla.javascript.Scriptable scriptable)
has
in interface org.mozilla.javascript.Scriptable
has
in class org.mozilla.javascript.ScriptableObject
public Object get(String propertyName, org.mozilla.javascript.Scriptable scriptable)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
public Object get(int i, org.mozilla.javascript.Scriptable scriptable)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
public void put(String propertyName, org.mozilla.javascript.Scriptable scriptable, Object value)
put
in interface org.mozilla.javascript.Scriptable
put
in class org.mozilla.javascript.ScriptableObject
public ScriptingEngine newScriptingEngine(ScriptableDelegate child)
ScriptingEngine
public void clearCaches()
ScriptingEngine
protected JavaScript.ElementArray toElementArray(ScriptingHandler[] scriptables)
Copyright © 2012. All Rights Reserved.