- All Superinterfaces:
- Window
- All Known Implementing Classes:
- BaseScriptingEnvironment.Window,- ScriptingEnvironment.Window,- SVG12ScriptingEnvironment.Global
This interface represents the 'window' object defined in the global
 environment of a SVG document.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTo handle the completion of a 'getURL()' or 'postURL' call.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDisplays an alert dialog box.voidclearInterval(Object interval) Cancels an interval that was set by a call to 'setInterval'.voidclearTimeout(Object timeout) Cancels an timeout that was set by a call to 'setTimeout'.booleanDisplays a confirm dialog box.Returns the current BridgeContext.Returns the associated interpreter.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) Calls the 'run' method of the given Runnable repeatedly after the given amount of time.setInterval(String script, long interval) Evaluates the given string repeatedly after the given amount of time.setTimeout(Runnable r, long timeout) Calls the 'run' method of the given Runnable after the given amount of time.setTimeout(String script, long timeout) Evaluates the given string after the given amount of time.Methods inherited from interface io.sf.carte.echosvg.w3c.dom.WindowgetLocation, getParent
- 
Method Details- 
setIntervalEvaluates the given string repeatedly after the given amount of time. This method does not stall the script: the evaluation is scheduled and the script continues its execution.- Returns:
- an object representing the interval created.
 
- 
setIntervalCalls the 'run' method of the given Runnable repeatedly after the given amount of time. This method does not stall the script: the evaluation is scheduled and the script continues its execution.- Returns:
- an object representing the interval created.
 
- 
clearIntervalCancels an interval that was set by a call to 'setInterval'.
- 
setTimeoutEvaluates the given string after the given amount of time. This method does not stall the script: the evaluation is scheduled and the script continues its execution.- Returns:
- an object representing the timeout created.
 
- 
setTimeoutCalls the 'run' method of the given Runnable after the given amount of time. This method does not stall the script: the evaluation is scheduled and the script continues its execution.- Returns:
- an object representing the timeout created.
 
- 
clearTimeoutCancels an timeout that was set by a call to 'setTimeout'.
- 
parseXMLParses the given XML string into a DocumentFragment of the given document or a new document if 'doc' is null.- Returns:
- The document fragment or null on error.
 
- 
printNodeSerializes the given node.
- 
getURLGets data from the given URI.- Parameters:
- uri- The URI where the data is located.
- h- A handler called when the data is available.
 
- 
getURLGets data from the given URI.- 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.
 
- 
postURLPosts data to the given URI.- 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.
 
- 
postURLPosts data to the given URI.- 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.
 
- 
postURLPosts data to the given URI.- 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.
- enc- The encoding to apply to- contentmay be "gzip", "deflate", or- null.
 
- 
alertDisplays an alert dialog box.
- 
confirmDisplays a confirm dialog box.
- 
promptDisplays an input dialog box.- Returns:
- The input of the user, or null if the dialog was cancelled.
 
- 
promptDisplays an input dialog box, given the default value.- Returns:
- The input of the user, or null if the dialog was cancelled.
 
- 
getBridgeContextBridgeContext getBridgeContext()Returns the current BridgeContext. This object given a deep access to the viewer internals.
- 
getInterpreterInterpreter getInterpreter()Returns the associated interpreter.
 
-