Modifier and Type | Interface and Description |
---|---|
static interface |
Window.URLResponseHandler
To handle the completion of a 'getURL()' or 'postURL' call.
|
Modifier and Type | Method and Description |
---|---|
void |
alert(java.lang.String message)
Displays an alert dialog box.
|
void |
clearInterval(java.lang.Object interval)
Cancels an interval that was set by a call to 'setInterval'.
|
void |
clearTimeout(java.lang.Object timeout)
Cancels an timeout that was set by a call to 'setTimeout'.
|
boolean |
confirm(java.lang.String message)
Displays a confirm dialog box.
|
BridgeContext |
getBridgeContext()
Returns the current BridgeContext.
|
Interpreter |
getInterpreter()
Returns the associated interpreter.
|
void |
getURL(java.lang.String uri,
Window.URLResponseHandler h)
Gets data from the given URI.
|
void |
getURL(java.lang.String uri,
Window.URLResponseHandler h,
java.lang.String enc)
Gets data from the given URI.
|
Node |
parseXML(java.lang.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(java.lang.String uri,
java.lang.String content,
Window.URLResponseHandler h)
Posts data to the given URI.
|
void |
postURL(java.lang.String uri,
java.lang.String content,
Window.URLResponseHandler h,
java.lang.String mimeType)
Posts data to the given URI.
|
void |
postURL(java.lang.String uri,
java.lang.String content,
Window.URLResponseHandler h,
java.lang.String mimeType,
java.lang.String enc)
Posts data to the given URI.
|
java.lang.String |
printNode(Node n)
Serializes the given node.
|
java.lang.String |
prompt(java.lang.String message)
Displays an input dialog box.
|
java.lang.String |
prompt(java.lang.String message,
java.lang.String defVal)
Displays an input dialog box, given the default value.
|
java.lang.Object |
setInterval(java.lang.Runnable r,
long interval)
Calls the 'run' method of the given Runnable repeatedly after
the given amount of time.
|
java.lang.Object |
setInterval(java.lang.String script,
long interval)
Evaluates the given string repeatedly after the given amount of
time.
|
java.lang.Object |
setTimeout(java.lang.Runnable r,
long timeout)
Calls the 'run' method of the given Runnable after the given
amount of time.
|
java.lang.Object |
setTimeout(java.lang.String script,
long timeout)
Evaluates the given string after the given amount of time.
|
getLocation, getParent
java.lang.Object setInterval(java.lang.String script, long interval)
java.lang.Object setInterval(java.lang.Runnable r, long interval)
void clearInterval(java.lang.Object interval)
java.lang.Object setTimeout(java.lang.String script, long timeout)
java.lang.Object setTimeout(java.lang.Runnable r, long timeout)
void clearTimeout(java.lang.Object timeout)
Node parseXML(java.lang.String text, Document doc)
java.lang.String printNode(Node n)
void getURL(java.lang.String uri, Window.URLResponseHandler h)
uri
- The URI where the data is located.h
- A handler called when the data is available.void getURL(java.lang.String uri, Window.URLResponseHandler h, java.lang.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.void postURL(java.lang.String uri, java.lang.String content, Window.URLResponseHandler h)
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.void postURL(java.lang.String uri, java.lang.String content, Window.URLResponseHandler h, java.lang.String mimeType)
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.void postURL(java.lang.String uri, java.lang.String content, Window.URLResponseHandler h, java.lang.String mimeType, java.lang.String enc)
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 content
may be "gzip", "deflate", or null
.void alert(java.lang.String message)
boolean confirm(java.lang.String message)
java.lang.String prompt(java.lang.String message)
java.lang.String prompt(java.lang.String message, java.lang.String defVal)
BridgeContext getBridgeContext()
Interpreter getInterpreter()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.