- Enclosing class:
public static enum PrinterJob.JobStatus extends Enum<PrinterJob.JobStatus>
jobStatusproperty, or may query it directly using
The typical life cycle of a job is as follows :
- job will be created with status
NOT_STARTEDand will stay there during configuration via dialogs etc.
- job will enter state
PRINTINGwhen the first page is printed.
- job will enter state
DONEonce the job is successfully completed without being cancelled or encountering an error. The job is now completed.
- A job that encounters an
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.
- JavaFX 8.0
Nested Class Summary
Enum Constant Summary
Enum Constants Enum Constant DescriptionThe 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.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
NOT_STARTEDpublic static final PrinterJob.JobStatus NOT_STARTEDThe new job status. May display print dialogs and configure the job and initiate printing.
PRINTINGpublic static final PrinterJob.JobStatus PRINTINGThe job has requested to print at least one page, and has not terminated printing. May no longer display print dialogs.
CANCELEDpublic static final PrinterJob.JobStatus CANCELEDThe job has been cancelled by the application. May not display dialogs or initiate printing. Job should be discarded. There is no need to call endJob().
ERRORpublic static final PrinterJob.JobStatus ERRORThe job encountered an error. Job should be discarded. There is no need to call endJob().
DONEpublic static final PrinterJob.JobStatus DONEThe job initiated printing and later called endJob() which reported success. The job can be discarded as it cannot be re-used.
valuespublic static PrinterJob.JobStatus values()Returns an array containing the constants of this enum type, in the order they are declared.
- an array containing the constants of this enum type, in the order they are declared
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)