Interface PromptCallback
- All Superinterfaces:
AsyncCallback<PromptCallback.Params,
,PromptCallback.Action> BrowserAsyncCallback<PromptCallback.Params,
,PromptCallback.Action> BrowserCallback
,Callback
- All Known Implementing Classes:
DefaultPromptCallback
,DefaultPromptCallback
,DefaultPromptCallback
public interface PromptCallback
extends BrowserAsyncCallback<PromptCallback.Params,PromptCallback.Action>
This callback is invoked when JavaScript dialog prompting the user to input some text should be
displayed.
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
An action providing a response to thePromptCallback
.static interface
The parameters of thePromptCallback
. -
Method Summary
Methods inherited from interface com.teamdev.jxbrowser.callback.AsyncCallback
on