Module java.desktop
Package javax.print.event
Package
javax.print.event
contains event classes and listener interfaces.
They may be used to monitor both print services (such as printers going on-line & off-line), and the progress of a specific print job.
Please note: In the javax.print
APIs, a null
reference parameter to methods is incorrect unless explicitly documented on the method as having a meaningful interpretation. Usage to the contrary is incorrect coding and may result in a run time exception either immediately or at some later time. IllegalArgumentException
and NullPointerException
are examples of typical and acceptable run time exceptions for such cases.
- Since:
- 1.4
-
Interface Summary Interface Description PrintJobAttributeListener Implementations of this interface are attached to aDocPrintJob
to monitor the status of attribute changes associated with the print job.PrintJobListener Implementations of this listener interface should be attached to aDocPrintJob
to monitor the status of the printer job.PrintServiceAttributeListener Implementations of this listener interface are attached to aPrintService
to monitor the status of the print service. -
Class Summary Class Description PrintEvent ClassPrintEvent
is the super class of all Print Service API events.PrintJobAdapter An abstract adapter class for receiving print job events.PrintJobAttributeEvent ClassPrintJobAttributeEvent
encapsulates an event aPrintService
reports to let the client know that one or more printing attributes for aPrintJob
have changed.PrintJobEvent ClassPrintJobEvent
encapsulates common events a print job reports to let a listener know of progress in the processing of theDocPrintJob
.PrintServiceAttributeEvent ClassPrintServiceAttributeEvent
encapsulates an event a Print Service instance reports to let the client know of changes in the print service state.