public static final class PrintPdfCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.print.internal.rpc.PrintPdf.Response>
PrintPdfCallback
.Constructor and Description |
---|
Action(java.util.function.Consumer<com.teamdev.jxbrowser.print.internal.rpc.PrintPdf.Response> consumer) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Notifies the browser to cancel the printing.
|
void |
proceed(Printer<?> printer)
Applies the configured print settings and notifies the browser to proceed with printing.
|
isClosed
public Action(java.util.function.Consumer<com.teamdev.jxbrowser.print.internal.rpc.PrintPdf.Response> consumer)
public void proceed(Printer<?> printer)
java.lang.IllegalStateException
- when printing on the PDF printer and the path to the destination PDF file is not
configuredpublic void cancel()