public static enum PrinterStatus.Code extends java.lang.Enum<PrinterStatus.Code>
Enum Constant and Description |
---|
PRINTER_CONNECTED |
PRINTER_DISCONNECTED |
PRINTER_ERROR_IMAGE_OFFDOCK |
PRINTER_ERROR_OTHER |
PRINTER_ERROR_OUT_OF_PAPER |
PRINTER_JOB_FAILED |
PRINTER_JOB_PRINTED |
PRINTER_JOB_QUEUED |
PRINTER_UNAVAILABLE |
Modifier and Type | Method and Description |
---|---|
static PrinterStatus.Code |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrinterStatus.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrinterStatus.Code PRINTER_CONNECTED
public static final PrinterStatus.Code PRINTER_DISCONNECTED
public static final PrinterStatus.Code PRINTER_UNAVAILABLE
public static final PrinterStatus.Code PRINTER_JOB_PRINTED
public static final PrinterStatus.Code PRINTER_JOB_FAILED
public static final PrinterStatus.Code PRINTER_JOB_QUEUED
public static final PrinterStatus.Code PRINTER_ERROR_OUT_OF_PAPER
public static final PrinterStatus.Code PRINTER_ERROR_OTHER
public static final PrinterStatus.Code PRINTER_ERROR_IMAGE_OFFDOCK
public static PrinterStatus.Code[] values()
for (PrinterStatus.Code c : PrinterStatus.Code.values()) System.out.println(c);
public static PrinterStatus.Code 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 namejava.lang.NullPointerException
- if the argument is null