public interface PromptCallback extends BrowserAsyncCallback<PromptCallback.Params,PromptCallback.Action>
The passed PromptCallback.Params object contains the text of the prompt message and the default
response text. You can use this information to display standard Java modal dialog to obtain a
prompt response from user. Please note that it is not necessary to display a dialog in this
callback.
Use the PromptCallback.Action.ok(String) method to close the dialog and pass the text value passed
as a parameter to the engine.
Use the PromptCallback.Action.cancel() method to cancel the dialog.
If the callback throws an exception, the PromptCallback.Action.cancel() method will be invoked.
| Modifier and Type | Interface and Description |
|---|---|
static class |
PromptCallback.Action
An action providing a response to the
PromptCallback. |
static interface |
PromptCallback.Params
The parameters of the
PromptCallback. |
on