Interface ConfirmCallback
- All Superinterfaces:
AsyncCallback<ConfirmCallback.Params,
,ConfirmCallback.Action> BrowserAsyncCallback<ConfirmCallback.Params,
,ConfirmCallback.Action> BrowserCallback
,Callback
- All Known Implementing Classes:
DefaultConfirmCallback
,DefaultConfirmCallback
,DefaultConfirmCallback
public interface ConfirmCallback
extends BrowserAsyncCallback<ConfirmCallback.Params,ConfirmCallback.Action>
This callback is invoked when JavaScript confirmation dialog should be displayed. In this
callback you can display standard Java modal dialog with the message that you can get from
ConfirmCallback.Params
. Please note that it is not necessary to display a dialog in this callback.
Use the ConfirmCallback.Action.ok()
method to notify that the JavaScript dialog is closed
with the "OK" action.
Use the ConfirmCallback.Action.cancel()
method to cancel the dialog.
If the callback throws an exception, the ConfirmCallback.Action.cancel()
method will be invoked.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
An action providing a response to theConfirmCallback
.static interface
The parameters of theConfirmCallback
. -
Method Summary
Methods inherited from interface com.teamdev.jxbrowser.callback.AsyncCallback
on