Search in sources :

Example 6 with PrinterStateReasons

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;
    }
}
Also used : PrinterStateReasons(javax.print.attribute.standard.PrinterStateReasons)

Aggregations

PrinterStateReasons (javax.print.attribute.standard.PrinterStateReasons)6 PrinterState (javax.print.attribute.standard.PrinterState)4 HashPrintServiceAttributeSet (javax.print.attribute.HashPrintServiceAttributeSet)2 PrintServiceAttributeSet (javax.print.attribute.PrintServiceAttributeSet)2 PrinterIsAcceptingJobs (javax.print.attribute.standard.PrinterIsAcceptingJobs)2 java.awt.print (java.awt.print)1 PrinterException (java.awt.print.PrinterException)1 BufferedInputStream (java.io.BufferedInputStream)1 FileNotFoundException (java.io.FileNotFoundException)1 FileOutputStream (java.io.FileOutputStream)1 IOException (java.io.IOException)1 URL (java.net.URL)1 DocFlavor (javax.print.DocFlavor)1 PrintException (javax.print.PrintException)1 PrintService (javax.print.PrintService)1 StreamPrintService (javax.print.StreamPrintService)1 SunPageSelection (sun.print.SunPageSelection)1 SunPrinterJobService (sun.print.SunPrinterJobService)1