org.apache.batik.script.rhino
Class WindowWrapper
java.lang.Object
|
+--org.mozilla.javascript.ScriptableObject
|
+--org.apache.batik.script.rhino.WindowWrapper
- All Implemented Interfaces:
- org.mozilla.javascript.Scriptable, java.io.Serializable
- public class WindowWrapper
- extends org.mozilla.javascript.ScriptableObject
This class wraps a Window object to expose it to the interpreter.
- See Also:
- Serialized Form
Fields inherited from class org.mozilla.javascript.ScriptableObject |
DONTENUM, EMPTY, parent, PERMANENT, prototype, READONLY |
Fields inherited from interface org.mozilla.javascript.Scriptable |
NOT_FOUND |
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 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 |
interpreter
protected RhinoInterpreter interpreter
- The rhino interpreter.
window
protected Window window
- The wrapped window.
WindowWrapper
public WindowWrapper()
- Creates a new WindowWrapper.
jsConstructor
public 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.
getClassName
public java.lang.String getClassName()
- Overrides:
getClassName
in class org.mozilla.javascript.ScriptableObject
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
jsFunction_setInterval
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
- Wraps the 'setInterval' methods of the Window interface.
jsFunction_setTimeout
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
- Wraps the 'setTimeout' methods of the Window interface.
jsFunction_clearInterval
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
- Wraps the 'clearInterval' method of the Window interface.
jsFunction_clearTimeout
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
- Wraps the 'clearTimeout' method of the Window interface.
jsFunction_alert
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
- Wraps the 'alert' method of the Window interface.
jsFunction_confirm
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
- Wraps the 'confirm' method of the Window interface.
jsFunction_prompt
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
- Wraps the 'prompt' method of the Window interface.
Copyright © 2002 Apache Software Foundation. All Rights Reserved.