Class ScriptingEnvironment.Window
java.lang.Object
org.apache.batik.bridge.ScriptingEnvironment.Window
- Direct Known Subclasses:
SVG12ScriptingEnvironment.Global
- Enclosing class:
ScriptingEnvironment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classATimerTaskto invoke asetInterval()-scheduled function that is specified by aRunnable.protected classATimerTaskto invoke asetInterval()-scheduled function that is specified by a String.protected classATimerTaskto invoke asetTimeout()-scheduled function that is specified by a Runnable.protected classATimerTaskto invoke asetTimeout()-scheduled function that is specified by a String.Nested classes/interfaces inherited from interface Window
Window.URLResponseHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InterpreterThe associated interpreter.protected StringThe associated language.protected LocationThe Location object -
Constructor Summary
ConstructorsConstructorDescriptionWindow(Interpreter interp, String lang) Creates a new Window for the given language. -
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 a Location object representing this Window.Returns a Window object representing the parent of this Window.voidgetURL(String uri, Window.URLResponseHandler h) voidgetURL(String uri, Window.URLResponseHandler h, String enc) ImplementsWindow.parseXML(String,Document).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. -
location
The Location object
-
-
Constructor Details
-
Window
Creates a new Window for the given language.
-
-
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
-
printNode
-
getURL
-
getURL
-
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
-
getParent
-
getLocation
Returns a Location object representing this Window.- Specified by:
getLocationin interfaceWindow
-