javax.print.event
public class PrintJobEvent extends PrintEvent
PrintJobEvent
s are generated by a print job during
print job processing to inform registered listeners about the state
of processing.Modifier and Type | Field and Description |
---|---|
static int |
DATA_TRANSFER_COMPLETE
Indicates that the data transfer to the print service has completed.
|
static int |
JOB_CANCELED
Indicates that the print job was canceled.
|
static int |
JOB_COMPLETE
Indicates that the print job was completed (=printed).
|
static int |
JOB_FAILED
Indicates that the print job failed to complete.
|
static int |
NO_MORE_EVENTS
Indicates that no more job events will be send.
|
static int |
REQUIRES_ATTENTION
Indicates a situation where human intervention might be needed.
|
source
Constructor and Description |
---|
PrintJobEvent(DocPrintJob source,
int reason)
Constructs a
PrintJobEvent object. |
Modifier and Type | Method and Description |
---|---|
int |
getPrintEventType()
Returns the reason for this event.
|
DocPrintJob |
getPrintJob()
Returns the print job that generated this event.
|
toString
getSource
public static final int DATA_TRANSFER_COMPLETE
public static final int JOB_CANCELED
public static final int JOB_COMPLETE
public static final int JOB_FAILED
public static final int NO_MORE_EVENTS
public static final int REQUIRES_ATTENTION
public PrintJobEvent(DocPrintJob source, int reason)
PrintJobEvent
object.source
- the source generating this eventreason
- the reason for this eventpublic int getPrintEventType()
public DocPrintJob getPrintJob()