- Enclosing class:
public static enum PrinterJob.JobStatus extends Enum<PrinterJob.JobStatus>An enum class used in reporting status of a print job. Applications can listen to the job status via the
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
Enum Constant Summary
Enum Constants Enum Constant Description
CANCELEDThe job has been cancelled by the application.
DONEThe job initiated printing and later called endJob() which reported success.
ERRORThe job encountered an error.
NOT_STARTEDThe new job status.
PRINTINGThe job has requested to print at least one page, and has not terminated printing.
Enum Constant Detail
public static final PrinterJob.JobStatus NOT_STARTEDThe new job status. May display print dialogs and configure the job and initiate printing.
public 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.
public 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().
public static final PrinterJob.JobStatus ERRORThe job encountered an error. Job should be discarded. There is no need to call endJob().
public 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.
public 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
public static PrinterJob.JobStatus valueOf(String name)Returns 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.)