Package org.apache.batik.bridge
Class ScriptingEnvironment.Window
java.lang.Object
org.apache.batik.bridge.ScriptingEnvironment.Window
- Direct Known Subclasses:
SVG12ScriptingEnvironment.Global
- Enclosing class:
ScriptingEnvironment
Represents the window object of this environment.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
ATimerTask
to invoke asetInterval()
-scheduled function that is specified by aRunnable
.protected class
ATimerTask
to invoke asetInterval()
-scheduled function that is specified by a String.protected class
ATimerTask
to invoke asetTimeout()
-scheduled function that is specified by a Runnable.protected class
ATimerTask
to invoke asetTimeout()
-scheduled function that is specified by a String.Nested classes/interfaces inherited from interface org.apache.batik.bridge.Window
Window.URLResponseHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Interpreter
The associated interpreter.protected String
The associated language.protected Location
The Location object -
Constructor Summary
ConstructorsConstructorDescriptionWindow
(Interpreter interp, String lang) Creates a new Window for the given language. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays an alert dialog box.void
clearInterval
(Object interval) ImplementsWindow.clearInterval(Object)
.void
clearTimeout
(Object timeout) ImplementsWindow.clearTimeout(Object)
.boolean
Displays 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.void
getURL
(String uri, Window.URLResponseHandler h) void
getURL
(String uri, Window.URLResponseHandler h, String enc) ImplementsWindow.parseXML(String,Document)
.void
postURL
(String uri, String content, Window.URLResponseHandler h) Posts data to the given URI.void
postURL
(String uri, String content, Window.URLResponseHandler h, String mimeType) Posts data to the given URI.void
Posts 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:
setInterval
in interfaceWindow
- Returns:
- an object representing the interval created.
-
setInterval
ImplementsWindow.setInterval(Runnable,long)
.- Specified by:
setInterval
in interfaceWindow
- Returns:
- an object representing the interval created.
-
clearInterval
ImplementsWindow.clearInterval(Object)
.- Specified by:
clearInterval
in interfaceWindow
-
setTimeout
ImplementsWindow.setTimeout(String,long)
.- Specified by:
setTimeout
in interfaceWindow
- Returns:
- an object representing the timeout created.
-
setTimeout
ImplementsWindow.setTimeout(Runnable,long)
.- Specified by:
setTimeout
in interfaceWindow
- Returns:
- an object representing the timeout created.
-
clearTimeout
ImplementsWindow.clearTimeout(Object)
.- Specified by:
clearTimeout
in interfaceWindow
-
parseXML
ImplementsWindow.parseXML(String,Document)
. -
printNode
Serializes the given node. -
getURL
-
getURL
-
postURL
Description copied from interface:Window
Posts data to the given URI. -
postURL
Description copied from interface:Window
Posts data to the given URI. -
postURL
public void postURL(String uri, String content, Window.URLResponseHandler h, String mimeType, String fEnc) Description copied from interface:Window
Posts data to the given URI.- Specified by:
postURL
in 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 tocontent
may be "gzip", "deflate", ornull
.
-
alert
Displays an alert dialog box. -
confirm
Displays a confirm dialog box. -
prompt
Displays an input dialog box. -
prompt
Displays an input dialog box, given the default value. -
getBridgeContext
Returns the current BridgeContext.- Specified by:
getBridgeContext
in interfaceWindow
-
getInterpreter
Returns the associated interpreter.- Specified by:
getInterpreter
in interfaceWindow
-
getParent
Returns a Window object representing the parent of this Window. -
getLocation
Returns a Location object representing this Window.- Specified by:
getLocation
in interfaceWindow
-