Class DefaultStartDownloadCallback

All Implemented Interfaces:
BrowserAsyncCallback<StartDownloadCallback.Params,StartDownloadCallback.Action>, BrowserCallback, StartDownloadCallback, AsyncCallback<StartDownloadCallback.Params,StartDownloadCallback.Action>, Callback

public final class DefaultStartDownloadCallback extends DefaultCallback implements StartDownloadCallback
The default StartDownloadCallback implementation that shows a file chooser dialog when the engine's download service requests to download a file.

If file to download already exists in the selected destination directory a warning message will be shown.

If there is no permission to the selected destination directory a warning message will be shown as well.

  • Constructor Details

    • DefaultStartDownloadCallback

      public DefaultStartDownloadCallback(BrowserView parent)
  • Method Details

    • on

      Description copied from interface: AsyncCallback
      Invoked when the callback needs a response for the given callback parameters. The response can be provided asynchronously from a different thread or before the method returns. The response can be provided only once.
      Specified by:
      on in interface AsyncCallback<StartDownloadCallback.Params,StartDownloadCallback.Action>
      Parameters:
      params - the object that represents the callback parameters
      tell - 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