|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
com.meterware.httpunit.javascript.ScriptingEngineImpl
com.meterware.httpunit.javascript.JavaScript.Control
public static class JavaScript.Control
Javascript support for any control
Field Summary | |
---|---|
protected com.meterware.httpunit.javascript.JavaScript.JavaScriptEngine |
_parent
|
protected ScriptableDelegate |
_scriptable
|
Fields inherited from class org.mozilla.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
JavaScript.Control()
|
Method Summary | |
---|---|
void |
clearCaches()
Clears any cached values, permitting them to be recomputed as needed. |
java.lang.Object |
get(int i,
org.mozilla.javascript.Scriptable scriptable)
|
java.lang.Object |
get(java.lang.String propertyName,
org.mozilla.javascript.Scriptable scriptable)
|
java.lang.String |
getClassName()
|
boolean |
handleEvent(java.lang.String eventName)
get the event Handler script for the event e.g. |
boolean |
has(java.lang.String propertyName,
org.mozilla.javascript.Scriptable scriptable)
|
void |
jsFunction_click()
click via javascript |
void |
jsFunction_focus()
|
java.lang.Object |
jsFunction_getAttribute(java.lang.String attributeName)
Support getting value of arbitrary attribute |
void |
jsFunction_onchange()
Allow calling onchange() from within a JavaScript function |
void |
jsFunction_removeAttribute(java.lang.String attributeName)
Support getting value of arbitrary attribute |
void |
jsFunction_select()
|
void |
jsFunction_setAttribute(java.lang.String attributeName,
java.lang.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(java.lang.String propertyName,
org.mozilla.javascript.Scriptable scriptable,
java.lang.Object value)
|
protected JavaScript.ElementArray |
toElementArray(ScriptingHandler[] scriptables)
|
java.lang.String |
toString()
|
protected static java.lang.String |
toStringIfNotUndefined(java.lang.Object object)
|
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, 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, wait, wait, wait |
Field Detail |
---|
protected ScriptableDelegate _scriptable
protected com.meterware.httpunit.javascript.JavaScript.JavaScriptEngine _parent
Constructor Detail |
---|
public JavaScript.Control()
Method Detail |
---|
public java.lang.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 java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public java.lang.Object jsFunction_getAttribute(java.lang.String attributeName) throws org.mozilla.javascript.JavaScriptException
org.mozilla.javascript.JavaScriptException
public void jsFunction_setAttribute(java.lang.String attributeName, java.lang.Object value) throws org.mozilla.javascript.JavaScriptException
org.mozilla.javascript.JavaScriptException
public void jsFunction_removeAttribute(java.lang.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(java.lang.String eventName)
handleEvent
in interface ScriptingEventHandler
handleEvent
in class ScriptingEngineImpl
eventName
-
public boolean has(java.lang.String propertyName, org.mozilla.javascript.Scriptable scriptable)
has
in interface org.mozilla.javascript.Scriptable
has
in class org.mozilla.javascript.ScriptableObject
public java.lang.Object get(java.lang.String propertyName, org.mozilla.javascript.Scriptable scriptable)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
public java.lang.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(java.lang.String propertyName, org.mozilla.javascript.Scriptable scriptable, java.lang.Object value)
put
in interface org.mozilla.javascript.Scriptable
put
in class org.mozilla.javascript.ScriptableObject
public java.lang.String toString()
toString
in class java.lang.Object
public ScriptingEngine newScriptingEngine(ScriptableDelegate child)
ScriptingEngine
public void clearCaches()
ScriptingEngine
protected static java.lang.String toStringIfNotUndefined(java.lang.Object object)
protected JavaScript.ElementArray toElementArray(ScriptingHandler[] scriptables)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |