org.apache.batik.bridge
protected class BaseScriptingEnvironment.Window extends Object implements Window
| Field Summary | |
|---|---|
| protected Interpreter | interpreter
The associated interpreter. |
| protected String | language
The associated language. |
| Constructor Summary | |
|---|---|
| Window(Interpreter interp, String lang)
Creates a new Window. | |
| Method Summary | |
|---|---|
| void | alert(String message)
Displays an alert dialog box. |
| void | clearInterval(Object interval)
Implements clearInterval. |
| void | clearTimeout(Object timeout)
Implements clearTimeout. |
| boolean | confirm(String message)
Displays a confirm dialog box. |
| BridgeContext | getBridgeContext()
Returns the current BridgeContext. |
| Interpreter | getInterpreter()
Returns the associated interpreter. |
| void | getURL(String uri, Window.URLResponseHandler h)
Gets data from the given URI. |
| void | getURL(String uri, Window.URLResponseHandler h, String enc)
Gets data from the given URI. |
| Node | parseXML(String text, Document doc)
Parses the given XML string into a DocumentFragment of the
given document or a new document if 'doc' is null.
|
| void | postURL(String uri, String content, Window.URLResponseHandler h) |
| void | postURL(String uri, String content, Window.URLResponseHandler h, String mimeType) |
| void | postURL(String uri, String content, Window.URLResponseHandler h, String mimeType, String fEnc) |
| String | prompt(String message)
Displays an input dialog box. |
| String | prompt(String message, String defVal)
Displays an input dialog box, given the default value. |
| Object | setInterval(String script, long interval)
Implements Window. |
| Object | setInterval(Runnable r, long interval)
Implements Window. |
| Object | setTimeout(String script, long timeout)
Implements Window. |
| Object | setTimeout(Runnable r, long timeout)
Implements Window. |
Parameters: uri The URI where the data is located. h A handler called when the data is available.
Parameters: uri The URI where the data is located. h A handler called when the data is available. enc The character encoding of the data.
Returns: The document/document fragment or null on error.