Interface SaveAsPdfCallback
- All Superinterfaces:
AsyncCallback<SaveAsPdfCallback.Params,
,SaveAsPdfCallback.Action> BrowserAsyncCallback<SaveAsPdfCallback.Params,
,SaveAsPdfCallback.Action> BrowserCallback
,Callback
- All Known Implementing Classes:
DefaultSaveAsPdfCallback
,DefaultSaveAsPdfCallback
,DefaultSaveAsPdfCallback
public interface SaveAsPdfCallback
extends BrowserAsyncCallback<SaveAsPdfCallback.Params,SaveAsPdfCallback.Action>
This callback is invoked when the browser requests to display a file chooser dialog to save
content as PDF. You can use this callback to show the save dialog, or provide the full file path
without displaying any dialogs.
Use the SaveAsPdfCallback.Action.save(Path)
method to provide the selected file to the engine.
Use the SaveAsPdfCallback.Action.cancel()
method to cancel the dialog.
If the callback throws an exception, the SaveAsPdfCallback.Action.cancel()
method will be invoked.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
An action providing a response to theSaveAsPdfCallback
.static interface
The parameters of theSaveAsPdfCallback
. -
Method Summary
Methods inherited from interface com.teamdev.jxbrowser.callback.AsyncCallback
on