Class DefaultSaveFileCallback

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

public final class DefaultSaveFileCallback extends DefaultCallback implements SaveFileCallback
The default SaveFileCallback implementation that shows a file chooser dialog when the engine requests to save a file.
Since:
7.37
  • Constructor Details

    • DefaultSaveFileCallback

      public DefaultSaveFileCallback(BrowserView parent)
  • Method Details

    • on

      public void on(SaveFileCallback.Params params, SaveFileCallback.Action tell)
      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<SaveFileCallback.Params,SaveFileCallback.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