public static final class PrintCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.print.internal.rpc.Print.Response>
PrintCallback.| Constructor and Description |
|---|
Action(java.util.function.Consumer<com.teamdev.jxbrowser.print.internal.rpc.Print.Response> consumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Notifies the browser that the printing should be canceled.
|
void |
print()
Notifies the browser to proceed with the printing.
|
void |
showPrintPreview()
Notifies the browser to display the print preview dialog.
|
isClosedpublic Action(java.util.function.Consumer<com.teamdev.jxbrowser.print.internal.rpc.Print.Response> consumer)
public void showPrintPreview()
public void print()
PrintHtmlCallback or
PrintPdfCallback will be invoked to configure the print settings.
If none of these callbacks is registered, then the printing is canceled.
public void cancel()