|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mozilla.javascript.ScriptableObject | +--org.apache.batik.script.rhino.WindowWrapper
This class wraps a Window object to expose it to the interpreter.
Inner Class Summary | |
protected static class |
WindowWrapper.FunctionWrapper
To wrap a function in an handler. |
protected static class |
WindowWrapper.GetURLFunctionWrapper
To wrap a function passed to getURL(). |
Field Summary | |
protected RhinoInterpreter |
interpreter
The rhino interpreter. |
protected Window |
window
The wrapped window. |
Fields inherited from class org.mozilla.javascript.ScriptableObject |
DONTENUM, EMPTY, parent, PERMANENT, prototype, READONLY |
Fields inherited from interface org.mozilla.javascript.Scriptable |
NOT_FOUND |
Constructor Summary | |
WindowWrapper()
Creates a new WindowWrapper. |
Method Summary | |
java.lang.String |
getClassName()
|
static java.lang.Object |
jsConstructor(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
The ecmascript constructor for the Window class. |
static void |
jsFunction_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 |
jsFunction_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 |
jsFunction_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 boolean |
jsFunction_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. |
static void |
jsFunction_eval(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Wraps the 'eval' methods of the Window interface. |
static void |
jsFunction_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 |
jsFunction_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 java.lang.String |
jsFunction_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 |
jsFunction_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. |
static java.lang.Object |
jsFunction_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()
|
Methods inherited from class org.mozilla.javascript.ScriptableObject |
callMethod, defineClass, defineClass, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, getAllIds, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, has, has, hasInstance, hasProperty, hasProperty, isSealed, put, put, putProperty, putProperty, sealObject, setAttributes, setAttributes, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected RhinoInterpreter interpreter
protected Window window
Constructor Detail |
public WindowWrapper()
Method Detail |
public static java.lang.Object jsConstructor(org.mozilla.javascript.Context cx, java.lang.Object[] args, org.mozilla.javascript.Function ctorObj, boolean inNewExpr)
public java.lang.String getClassName()
getClassName
in class org.mozilla.javascript.ScriptableObject
public java.lang.String toString()
toString
in class java.lang.Object
public static void jsFunction_eval(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
public static java.lang.Object jsFunction_setInterval(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
public static java.lang.Object jsFunction_setTimeout(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
public static void jsFunction_clearInterval(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
public static void jsFunction_clearTimeout(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
public static java.lang.Object jsFunction_parseXML(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
public static void jsFunction_getURL(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
public static void jsFunction_alert(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
public static boolean jsFunction_confirm(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
public static java.lang.String jsFunction_prompt(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj) throws org.mozilla.javascript.JavaScriptException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |