public interface PrintCallback extends BrowserAsyncCallback<PrintCallback.Params,PrintCallback.Action>
In this callback you can cancel or allow showing print preview dialog.
By default print preview dialog will not be shown.
You can directly cancel printing by invoking PrintCallback.Action.cancel()
. To print
using the Print Preview dialog, the PrintCallback.Action.showPrintPreview()
method must be invoked.
If the callback throws an exception, the PrintCallback.Action.cancel()
method will be invoked.
Important: do not call PrintCallback.Action.showPrintPreview()
if the browser is not
displayed. In this case the dialog will not be visible as result the end user will not be able to
close it.
Modifier and Type | Interface and Description |
---|---|
static class |
PrintCallback.Action
An action providing a response to the
PrintCallback . |
static interface |
PrintCallback.Params
The parameters of the
PrintCallback . |
on