com.levigo.jadice.printer.event
Interface PrintErrorHandler
public interface PrintErrorHandler
Realizations of this interface should be registered to the
PrintErrorBroadcaster
to retrieve informations about
PrinterException
occurred in running printer jobs processed by jadice printing API. The
callback method may be invoked on the thread processing the print job, or a service created
notification thread. In either case developers are strongly encouraged not perform time consuming
processes in the callback method.
printerError
void printerError(PrinterException printerException,
AbstractPrinter printer,
PrinterJob job)
- Will be called whenever a printer exception is occurred within a running printer job processed
by jadice printing API.
- Parameters:
printerException
- the exception occurredprinter
- the printer instance which got the printer exception. The printer instance
allows to get access to the jadice printer settings. If the printer is an instance of
AbstractPrinter
, a cast allows to retrieve further print settings.job
- the printer job used to print. For JVMs 1.4 or newer the printer job provides the
underlying service printer instance (javax.print.PrintService).
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.