public static final class SaveAsPdfCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.internal.rpc.SaveAsPdf.Response>
SaveAsPdfCallback
.Constructor and Description |
---|
Action(java.util.function.Consumer<com.teamdev.jxbrowser.internal.rpc.SaveAsPdf.Response> consumer) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Notifies the browser that the save file dialog was cancelled.
|
void |
save(java.nio.file.Path filePath)
Notifies the browser that the save file dialog was closed and the given
file was
selected. |
isClosed
public Action(java.util.function.Consumer<com.teamdev.jxbrowser.internal.rpc.SaveAsPdf.Response> consumer)
public void save(java.nio.file.Path filePath)
file
was
selected. The file
might not exist, but the directory where the given file
is located must have the write permissions for the process where the engine is
running.public void cancel()