public final class DefaultStartDownloadCallback extends DefaultCallback implements StartDownloadCallback
StartDownloadCallback
implementation that shows a file chooser dialog when
engine requests to download a file.
If file to download already exists in the selected destination directory a warning message will be shown.
StartDownloadCallback.Action, StartDownloadCallback.Params
Constructor and Description |
---|
DefaultStartDownloadCallback(BrowserView parent) |
Modifier and Type | Method and Description |
---|---|
void |
on(StartDownloadCallback.Params params,
StartDownloadCallback.Action tell)
Invoked when the callback needs a response for the given callback parameters.
|
public DefaultStartDownloadCallback(BrowserView parent)
public void on(StartDownloadCallback.Params params, StartDownloadCallback.Action tell)
AsyncCallback
on
in interface AsyncCallback<StartDownloadCallback.Params,StartDownloadCallback.Action>
params
- 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