Package org.apache.batik.bridge
Class BaseScriptingEnvironment.Window
java.lang.Object
org.apache.batik.bridge.BaseScriptingEnvironment.Window
- Enclosing class:
- BaseScriptingEnvironment
Represents the window object of this environment.
-
Nested Class Summary
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. -
Constructor Summary
Constructors -
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 the Location.Returns the parent Window object.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.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) 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.
-
-
Constructor Details
-
Window
Creates a new Window.
-
-
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
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
Serializes the given node. -
getURL
Gets data from the given URI. -
getURL
Gets data from the given URI. -
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
-
getLocation
Returns the Location.- Specified by:
getLocation
in interfaceWindow
-
getParent
Returns the parent Window object.
-