public class WindowWrapper
extends ImporterTopLevel
Modifier and Type | Class and 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 and Description |
---|---|
protected RhinoInterpreter |
interpreter
The rhino interpreter.
|
protected Window |
window
The wrapped window.
|
Constructor and Description |
---|
WindowWrapper(Context context)
Creates a new WindowWrapper.
|
Modifier and Type | Method and Description |
---|---|
static void |
alert(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Wraps the 'alert' method of the Window interface.
|
static void |
clearInterval(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Wraps the 'clearInterval' method of the Window interface.
|
static void |
clearTimeout(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Wraps the 'clearTimeout' method of the Window interface.
|
static java.lang.Object |
confirm(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
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(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Wraps the 'getURL' method of the Window interface.
|
static java.lang.Object |
parseXML(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Wraps the 'parseXML' method of the Window interface.
|
static void |
postURL(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Wraps the 'postURL' method of the Window interface.
|
static java.lang.Object |
printNode(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Wraps the 'printNode' method of the Window interface.
|
static java.lang.Object |
prompt(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Wraps the 'prompt' method of the Window interface.
|
static java.lang.Object |
setInterval(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
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(Context cx,
Scriptable thisObj,
java.lang.Object[] args,
Function funObj)
Wraps the 'setTimeout' methods of the Window interface.
|
java.lang.String |
toString() |
protected RhinoInterpreter interpreter
protected Window window
public java.lang.String getClassName()
public java.lang.String toString()
public static java.lang.Object setInterval(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static java.lang.Object setTimeout(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static void clearInterval(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static void clearTimeout(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static java.lang.Object parseXML(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static java.lang.Object printNode(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static void getURL(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static void postURL(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static void alert(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static java.lang.Object confirm(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public static java.lang.Object prompt(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj)
public Location getLocation()
public void setLocation(java.lang.Object val)
Copyright ? 2015 Apache Software Foundation. All Rights Reserved.