GlobalWrapperpublic class WindowWrapper
extends org.mozilla.javascript.ImporterTopLevel
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
WindowWrapper.FunctionWrapper |
To wrap a function in an handler.
|
protected static class |
WindowWrapper.GetURLFunctionWrapper |
To wrap a function passed to getURL().
|
| Modifier and Type | Field | Description |
|---|---|---|
protected RhinoInterpreter |
interpreter |
The rhino interpreter.
|
protected Window |
window |
The wrapped window.
|
| Constructor | Description |
|---|---|
WindowWrapper(org.mozilla.javascript.Context context) |
Creates a new WindowWrapper.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
alert(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'alert' method of the Window interface.
|
static void |
clearInterval(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'clearInterval' method of the Window interface.
|
static void |
clearTimeout(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'clearTimeout' method of the Window interface.
|
static java.lang.Object |
confirm(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'confirm' method of the Window interface.
|
java.lang.String |
getClassName() |
|
Location |
getLocation() |
Return the Location for this Window.
|
static void |
getURL(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'getURL' method of the Window interface.
|
static java.lang.Object |
parseXML(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'parseXML' method of the Window interface.
|
static void |
postURL(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'postURL' method of the Window interface.
|
static java.lang.Object |
printNode(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'printNode' method of the Window interface.
|
static java.lang.Object |
prompt(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'prompt' method of the Window interface.
|
static java.lang.Object |
setInterval(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'setInterval' methods of the Window interface.
|
void |
setLocation(java.lang.Object val) |
Return the Location for this Window.
|
static java.lang.Object |
setTimeout(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
Wraps the 'setTimeout' methods of the Window interface.
|
java.lang.String |
toString() |
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultPut, defineOwnProperty, delete, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, getAttributes, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, getOwnPropertyDescriptor, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, instanceIdInfo, put, setAttributes, setInstanceIdValueexecIdCall, findPrototypeId, get, has, importPackage, init, initPrototypeId, initStandardObjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizeprotected RhinoInterpreter interpreter
protected Window window
public WindowWrapper(org.mozilla.javascript.Context context)
public java.lang.String getClassName()
getClassName in class org.mozilla.javascript.ImporterTopLevelpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.Object setInterval(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static java.lang.Object setTimeout(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static void clearInterval(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static void clearTimeout(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static java.lang.Object parseXML(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static java.lang.Object printNode(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static void getURL(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static void postURL(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static void alert(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static java.lang.Object confirm(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public static java.lang.Object prompt(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
public Location getLocation()
public void setLocation(java.lang.Object val)
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.