Class BaseScriptingEnvironment.Window
java.lang.Object
org.apache.batik.bridge.BaseScriptingEnvironment.Window
- Enclosing class:
BaseScriptingEnvironment
-
Nested Class Summary
Nested classes/interfaces inherited from interface Window
Window.URLResponseHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InterpreterThe associated interpreter.protected StringThe associated language. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisplays an alert dialog box.voidclearInterval(Object interval) ImplementsWindow.clearInterval(Object).voidclearTimeout(Object timeout) ImplementsWindow.clearTimeout(Object).booleanDisplays a confirm dialog box.Returns the current BridgeContext.Returns the associated interpreter.Returns the Location.Returns the parent Window object.voidgetURL(String uri, Window.URLResponseHandler h) Gets data from the given URI.voidgetURL(String uri, Window.URLResponseHandler h, String enc) Gets data from the given URI.Parses the given XML string into a DocumentFragment of the given document or a new document if 'doc' is null.voidpostURL(String uri, String content, Window.URLResponseHandler h) Posts data to the given URI.voidpostURL(String uri, String content, Window.URLResponseHandler h, String mimeType) Posts data to the given URI.voidPosts data to the given URI.Serializes the given node.Displays an input dialog box.Displays an input dialog box, given the default value.setInterval(Runnable r, long interval) ImplementsWindow.setInterval(Runnable,long).setInterval(String script, long interval) ImplementsWindow.setInterval(String,long).setTimeout(Runnable r, long timeout) ImplementsWindow.setTimeout(Runnable,long).setTimeout(String script, long timeout) ImplementsWindow.setTimeout(String,long).
-
Field Details
-
interpreter
The associated interpreter. -
language
The associated language.
-
-
Constructor Details
-
Window
Creates a new Window.
-
-
Method Details
-
setInterval
ImplementsWindow.setInterval(String,long).- Specified by:
setIntervalin interfaceWindow- Returns:
- an object representing the interval created.
-
setInterval
ImplementsWindow.setInterval(Runnable,long).- Specified by:
setIntervalin interfaceWindow- Returns:
- an object representing the interval created.
-
clearInterval
ImplementsWindow.clearInterval(Object).- Specified by:
clearIntervalin interfaceWindow
-
setTimeout
ImplementsWindow.setTimeout(String,long).- Specified by:
setTimeoutin interfaceWindow- Returns:
- an object representing the timeout created.
-
setTimeout
ImplementsWindow.setTimeout(Runnable,long).- Specified by:
setTimeoutin interfaceWindow- Returns:
- an object representing the timeout created.
-
clearTimeout
ImplementsWindow.clearTimeout(Object).- Specified by:
clearTimeoutin interfaceWindow
-
parseXML
Parses the given XML string into a DocumentFragment of the given document or a new document if 'doc' is null. The implementation in this class always returns 'null' -
printNode
-
getURL
Gets data from the given URI. -
getURL
Gets data from the given URI. -
postURL
Description copied from interface:WindowPosts data to the given URI. -
postURL
Description copied from interface:WindowPosts data to the given URI. -
postURL
public void postURL(String uri, String content, Window.URLResponseHandler h, String mimeType, String fEnc) Description copied from interface:WindowPosts data to the given URI.- Specified by:
postURLin interfaceWindow- Parameters:
uri- The URI where the data is located.content- The data to post to the server.h- A handler called when the data is available.mimeType- The mimeType to asscoiate with post.fEnc- The encoding to apply tocontentmay be "gzip", "deflate", ornull.
-
alert
-
confirm
-
prompt
-
prompt
-
getBridgeContext
Returns the current BridgeContext.- Specified by:
getBridgeContextin interfaceWindow
-
getInterpreter
Returns the associated interpreter.- Specified by:
getInterpreterin interfaceWindow
-
getLocation
-
getParent
-