public static class JavaScript.Window extends ScriptingEngineImpl
| Modifier and Type | Field and Description |
|---|---|
protected com.meterware.httpunit.javascript.JavaScript.JavaScriptEngine |
_parent |
protected ScriptableDelegate |
_scriptable |
| Constructor and Description |
|---|
JavaScript.Window() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCaches()
Clears any cached values, permitting them to be recomputed as needed.
|
protected void |
discardDocumentWriteBuffer() |
Object |
get(int i,
org.mozilla.javascript.Scriptable scriptable) |
Object |
get(String propertyName,
org.mozilla.javascript.Scriptable scriptable) |
String |
getClassName() |
protected String |
getDocumentWriteBuffer() |
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_alert(String message)
javascript alert handling
|
void |
jsFunction_close() |
boolean |
jsFunction_confirm(String message) |
void |
jsFunction_focus() |
void |
jsFunction_moveTo(int x,
int y) |
JavaScript.Window |
jsFunction_open(Object url,
String name,
String features,
boolean replace) |
String |
jsFunction_prompt(String message,
String defaultResponse) |
void |
jsFunction_setTimeout() |
JavaScript.Document |
jsGet_document() |
org.mozilla.javascript.Scriptable |
jsGet_frames() |
JavaScript.Location |
jsGet_location() |
JavaScript.Navigator |
jsGet_navigator() |
JavaScript.Screen |
jsGet_screen() |
JavaScript.Window |
jsGet_self() |
JavaScript.Window |
jsGet_window() |
void |
jsSet_location(String relativeURL) |
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, doEvent, doEventScript, evaluateExpression, getErrorMessages, handleScriptException, runScript, supportsScriptLanguageassociateValue, 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, setPrototypeprotected ScriptableDelegate _scriptable
protected com.meterware.httpunit.javascript.JavaScript.JavaScriptEngine _parent
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic JavaScript.Window jsGet_window()
public JavaScript.Window jsGet_self()
public JavaScript.Document jsGet_document()
public org.mozilla.javascript.Scriptable jsGet_frames()
throws SAXException,
org.mozilla.javascript.PropertyException,
org.mozilla.javascript.JavaScriptException,
org.mozilla.javascript.NotAFunctionException
SAXExceptionorg.mozilla.javascript.PropertyExceptionorg.mozilla.javascript.JavaScriptExceptionorg.mozilla.javascript.NotAFunctionExceptionpublic JavaScript.Navigator jsGet_navigator()
public JavaScript.Screen jsGet_screen()
public JavaScript.Location jsGet_location()
public void jsSet_location(String relativeURL) throws IOException, SAXException
IOExceptionSAXExceptionpublic void jsFunction_alert(String message)
message - - the alert messagepublic boolean jsFunction_confirm(String message)
public void jsFunction_moveTo(int x,
int y)
public void jsFunction_focus()
public void jsFunction_setTimeout()
public void jsFunction_close()
public JavaScript.Window jsFunction_open(Object url, String name, String features, boolean replace) throws org.mozilla.javascript.PropertyException, org.mozilla.javascript.JavaScriptException, org.mozilla.javascript.NotAFunctionException, IOException, SAXException
org.mozilla.javascript.PropertyExceptionorg.mozilla.javascript.JavaScriptExceptionorg.mozilla.javascript.NotAFunctionExceptionIOExceptionSAXExceptionpublic void clearCaches()
ScriptingEngineclearCaches in interface ScriptingEngineclearCaches in interface ScriptingHandlerprotected String getDocumentWriteBuffer()
getDocumentWriteBuffer in class ScriptingEngineImplprotected void discardDocumentWriteBuffer()
discardDocumentWriteBuffer in class ScriptingEngineImplpublic boolean handleEvent(String eventName)
handleEvent in interface ScriptingEventHandlerhandleEvent in class ScriptingEngineImpleventName - public boolean has(String propertyName, org.mozilla.javascript.Scriptable scriptable)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjectpublic Object get(String propertyName, org.mozilla.javascript.Scriptable scriptable)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectpublic Object get(int i, org.mozilla.javascript.Scriptable scriptable)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectpublic void put(String propertyName, org.mozilla.javascript.Scriptable scriptable, Object value)
put in interface org.mozilla.javascript.Scriptableput in class org.mozilla.javascript.ScriptableObjectpublic ScriptingEngine newScriptingEngine(ScriptableDelegate child)
ScriptingEngineprotected JavaScript.ElementArray toElementArray(ScriptingHandler[] scriptables)
Copyright © 2012. All Rights Reserved.