|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.bridge.BaseScriptingEnvironment.Window
protected class BaseScriptingEnvironment.Window
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 | |
---|---|
protected Interpreter |
interpreter
The associated interpreter. |
protected String |
language
The associated language. |
Constructor Summary | |
---|---|
BaseScriptingEnvironment.Window(Interpreter interp,
String lang)
Creates a new Window. |
Method Summary | |
---|---|
void |
alert(String message)
Displays an alert dialog box. |
void |
clearInterval(Object interval)
Implements Window.clearInterval(Object) . |
void |
clearTimeout(Object timeout)
Implements Window.clearTimeout(Object) . |
boolean |
confirm(String message)
Displays a confirm dialog box. |
BridgeContext |
getBridgeContext()
Returns the current BridgeContext. |
Interpreter |
getInterpreter()
Returns the associated interpreter. |
Location |
getLocation()
Returns the Location. |
Window |
getParent()
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. |
Node |
parseXML(String text,
Document doc)
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 |
postURL(String uri,
String content,
Window.URLResponseHandler h,
String mimeType,
String fEnc)
Posts data to the given URI. |
String |
printNode(Node n)
Serializes the given node. |
String |
prompt(String message)
Displays an input dialog box. |
String |
prompt(String message,
String defVal)
Displays an input dialog box, given the default value. |
Object |
setInterval(Runnable r,
long interval)
Implements Window.setInterval(Runnable,long) . |
Object |
setInterval(String script,
long interval)
Implements Window.setInterval(String,long) . |
Object |
setTimeout(Runnable r,
long timeout)
Implements Window.setTimeout(Runnable,long) . |
Object |
setTimeout(String script,
long timeout)
Implements Window.setTimeout(String,long) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Interpreter interpreter
protected String language
Constructor Detail |
---|
public BaseScriptingEnvironment.Window(Interpreter interp, String lang)
Method Detail |
---|
public Object setInterval(String script, long interval)
Window.setInterval(String,long)
.
public Object setInterval(Runnable r, long interval)
Window.setInterval(Runnable,long)
.
public void clearInterval(Object interval)
Window.clearInterval(Object)
.
public Object setTimeout(String script, long timeout)
Window.setTimeout(String,long)
.
public Object setTimeout(Runnable r, long timeout)
Window.setTimeout(Runnable,long)
.
public void clearTimeout(Object timeout)
Window.clearTimeout(Object)
.
public Node parseXML(String text, Document doc)
public String printNode(Node n)
public void getURL(String uri, Window.URLResponseHandler h)
uri
- The URI where the data is located.h
- A handler called when the data is available.public void getURL(String uri, Window.URLResponseHandler h, String enc)
uri
- The URI where the data is located.h
- A handler called when the data is available.enc
- The character encoding of the data.public void postURL(String uri, String content, Window.URLResponseHandler h)
Window
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.public void postURL(String uri, String content, Window.URLResponseHandler h, String mimeType)
Window
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.public void postURL(String uri, String content, Window.URLResponseHandler h, String mimeType, String fEnc)
Window
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 to content
may be "gzip", "deflate", or null
.public void alert(String message)
public boolean confirm(String message)
public String prompt(String message)
public String prompt(String message, String defVal)
public BridgeContext getBridgeContext()
public Interpreter getInterpreter()
public Location getLocation()
getLocation
in interface Window
public Window getParent()
getParent
in interface Window
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |