org.apache.batik.bridge

Class ScriptingEnvironment.Window

protected class ScriptingEnvironment.Window extends Object implements Window

Represents the window object of this environment.
Field Summary
protected Interpreterinterpreter
The associated interpreter.
protected Stringlanguage
The associated language.
Constructor Summary
Window(Interpreter interp, String lang)
Creates a new Window for the given language.
Method Summary
voidalert(String message)
Displays an alert dialog box.
voidclearInterval(Object interval)
Implements clearInterval.
voidclearTimeout(Object timeout)
Implements clearTimeout.
booleanconfirm(String message)
Displays a confirm dialog box.
BridgeContextgetBridgeContext()
Returns the current BridgeContext.
InterpretergetInterpreter()
Returns the associated interpreter.
voidgetURL(String uri, Window.URLResponseHandler h)
Implements getURL.
voidgetURL(String uri, Window.URLResponseHandler h, String enc)
Implements getURL.
NodeparseXML(String text, Document doc)
Implements parseXML.
voidpostURL(String uri, String content, Window.URLResponseHandler h)
voidpostURL(String uri, String content, Window.URLResponseHandler h, String mimeType)
voidpostURL(String uri, String content, Window.URLResponseHandler h, String mimeType, String fEnc)
Stringprompt(String message)
Displays an input dialog box.
Stringprompt(String message, String defVal)
Displays an input dialog box, given the default value.
ObjectsetInterval(String script, long interval)
Implements Window.
ObjectsetInterval(Runnable r, long interval)
Implements Window.
ObjectsetTimeout(String script, long timeout)
Implements Window.
ObjectsetTimeout(Runnable r, long timeout)
Implements Window.

Field Detail

interpreter

protected Interpreter interpreter
The associated interpreter.

language

protected String language
The associated language.

Constructor Detail

Window

public Window(Interpreter interp, String lang)
Creates a new Window for the given language.

Method Detail

alert

public void alert(String message)
Displays an alert dialog box.

clearInterval

public void clearInterval(Object interval)
Implements clearInterval.

clearTimeout

public void clearTimeout(Object timeout)
Implements clearTimeout.

confirm

public boolean confirm(String message)
Displays a confirm dialog box.

getBridgeContext

public BridgeContext getBridgeContext()
Returns the current BridgeContext.

getInterpreter

public Interpreter getInterpreter()
Returns the associated interpreter.

getURL

public void getURL(String uri, Window.URLResponseHandler h)
Implements getURL.

getURL

public void getURL(String uri, Window.URLResponseHandler h, String enc)
Implements getURL.

parseXML

public Node parseXML(String text, Document doc)
Implements parseXML.

postURL

public void postURL(String uri, String content, Window.URLResponseHandler h)

postURL

public void postURL(String uri, String content, Window.URLResponseHandler h, String mimeType)

postURL

public void postURL(String uri, String content, Window.URLResponseHandler h, String mimeType, String fEnc)

prompt

public String prompt(String message)
Displays an input dialog box.

prompt

public String prompt(String message, String defVal)
Displays an input dialog box, given the default value.

setInterval

public Object setInterval(String script, long interval)
Implements Window.

setInterval

public Object setInterval(Runnable r, long interval)
Implements Window.

setTimeout

public Object setTimeout(String script, long timeout)
Implements Window.

setTimeout

public Object setTimeout(Runnable r, long timeout)
Implements Window.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.