Interface SaveFileCallback

All Superinterfaces:
AsyncCallback<SaveFileCallback.Params,SaveFileCallback.Action>, BrowserAsyncCallback<SaveFileCallback.Params,SaveFileCallback.Action>, BrowserCallback, Callback
All Known Implementing Classes:
DefaultSaveFileCallback, DefaultSaveFileCallback, DefaultSaveFileCallback

public interface SaveFileCallback extends BrowserAsyncCallback<SaveFileCallback.Params,SaveFileCallback.Action>
This callback is invoked when the browser requests to display a file chooser dialog to save a file.

You can use this callback to display the file chooser, or provide the file path without displaying any dialogs.

Use the SaveFileCallback.Action.save(Path) method to provide the file path to the browser.

Use the SaveFileCallback.Action.cancel() method to cancel the dialog.

If the callback throws an exception, the SaveFileCallback.Action.cancel() method will be invoked.

Since:
7.37