public static enum PrinterJob.JobStatus extends java.lang.Enum<PrinterJob.JobStatus>
jobStatusproperty, or may query it directly using
The typical life cycle of a job is as follows :
NOT_STARTEDand will stay there during configuration via dialogs etc.
PRINTINGwhen the first page is printed.
DONEonce the job is successfully completed without being cancelled or encountering an error. The job is now completed.
CANCELEDis also considered completed.
A job may not revert to an earlier status in its life cycle and the current job state affects operations that may be performed. For example a job may not begin printing again if it has previously passed that state and entered any of the termination states.
|Enum Constant and Description|
The job has been cancelled by the application.
The job initiated printing and later called endJob() which reported success.
The job encountered an error.
The new job status.
The job has requested to print at least one page, and has not terminated printing.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final PrinterJob.JobStatus NOT_STARTED
public static final PrinterJob.JobStatus PRINTING
public static final PrinterJob.JobStatus CANCELED
public static final PrinterJob.JobStatus ERROR
public static PrinterJob.JobStatus values()
for (PrinterJob.JobStatus c : PrinterJob.JobStatus.values()) System.out.println(c);
public static PrinterJob.JobStatus valueOf(java.lang.String name)
name- the name of the enum constant to be returned.
java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
java.lang.NullPointerException- if the argument is null
Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to