use of javax.print.attribute.standard.PrinterStateReasons in project jdk8u_jdk by JetBrains.
the class UnixPrintService method getPrinterStateReasons.
private PrinterStateReasons getPrinterStateReasons() {
if (isInvalid) {
PrinterStateReasons psr = new PrinterStateReasons();
psr.put(PrinterStateReason.SHUTDOWN, Severity.ERROR);
return psr;
} else {
return null;
}
}
Aggregations