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.