public final class DefaultAlertCallback extends DefaultCallback implements AlertCallback
AlertCallback
implementation that shows a dialog when JavaScript alert dialog
should be displayed.AlertCallback.Action, AlertCallback.Params
Constructor and Description |
---|
DefaultAlertCallback(BrowserView parent) |
Modifier and Type | Method and Description |
---|---|
void |
on(AlertCallback.Params param,
AlertCallback.Action tell)
Invoked when the callback needs a response for the given callback parameters.
|
public DefaultAlertCallback(BrowserView parent)
public void on(AlertCallback.Params param, AlertCallback.Action tell)
AsyncCallback
on
in interface AsyncCallback<AlertCallback.Params,AlertCallback.Action>
param
- the object that represents the callback parameterstell
- the object that can be used to provide the callback response. One of its
methods must be invoked to provide the response. Once the response has been
provided, any call to the object methods will result in the IllegalStateException