public class PrintJobEvent extends PrintEvent
PrintJobEvent encapsulates common events a print job
 reports to let a listener know of progress in the processing of the
 DocPrintJob.| Modifier and Type | Field and Description | 
|---|---|
| static int | DATA_TRANSFER_COMPLETEThe job is not necessarily printed yet, but the data has been transferred
 successfully from the client to the print service. | 
| static int | JOB_CANCELEDThe job was canceled by the  PrintService. | 
| static int | JOB_COMPLETEThe document cis completely printed. | 
| static int | JOB_FAILEDThe print service reports that the job cannot be completed. | 
| static int | NO_MORE_EVENTSNot all print services may be capable of delivering interesting
 events, or even telling when a job is complete. | 
| static int | REQUIRES_ATTENTIONThe print service indicates that a - possibly transient - problem
 may require external intervention before the print service can
 continue. | 
source| Constructor and Description | 
|---|
| PrintJobEvent(DocPrintJob source,
             int reason)Constructs a  PrintJobEventobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getPrintEventType()Gets the reason for this event. | 
| DocPrintJob | getPrintJob()Determines the  DocPrintJobto which this print job
 event pertains. | 
toStringgetSourcepublic static final int JOB_CANCELED
PrintService.public static final int JOB_COMPLETE
public static final int JOB_FAILED
public static final int REQUIRES_ATTENTION
public static final int NO_MORE_EVENTS
public static final int DATA_TRANSFER_COMPLETE
public PrintJobEvent(DocPrintJob source, int reason)
PrintJobEvent object.IllegalArgumentException - if source is
         null.source - a DocPrintJob objectreason - an int specifying the reason.public int getPrintEventType()
public DocPrintJob getPrintJob()
DocPrintJob to which this print job
 event pertains.DocPrintJob object that represents the
          print job that reports the events encapsulated by this
          PrintJobEvent.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2016 aicas GmbH. All Rights Reserved.