Java 类javax.print.attribute.HashPrintJobAttributeSet 实例源码

项目:cn1    文件:WinPrintJob.java   
void notifyAttrListeners(final PrintJobAttribute... attrs) {
    final PrintJobAttributeSet attrSet = new HashPrintJobAttributeSet(attrs);
    final PrintJobAttributeEvent event = new PrintJobAttributeEvent(this,
                    attrSet);

    for (PrintJobAttribute attr : attrs) {
        final Class<? extends Attribute> cat = attr.getCategory();

        for (Map.Entry<PrintJobAttributeListener, PrintJobAttributeSet> e : attrListeners
                        .entrySet()) {
            if ((e.getValue() == null) || (e.getValue().containsKey(cat))) {
                e.getKey().attributeUpdate(event);
            }
        }
    }
}
项目:freeVM    文件:WinPrintJob.java   
void notifyAttrListeners(final PrintJobAttribute... attrs) {
    final PrintJobAttributeSet attrSet = new HashPrintJobAttributeSet(attrs);
    final PrintJobAttributeEvent event = new PrintJobAttributeEvent(this,
                    attrSet);

    for (PrintJobAttribute attr : attrs) {
        final Class<? extends Attribute> cat = attr.getCategory();

        for (Map.Entry<PrintJobAttributeListener, PrintJobAttributeSet> e : attrListeners
                        .entrySet()) {
            if ((e.getValue() == null) || (e.getValue().containsKey(cat))) {
                e.getKey().attributeUpdate(event);
            }
        }
    }
}
项目:OpenJSharp    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:OpenJSharp    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:OpenJSharp    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:OpenJSharp    文件:Win32PrintJob.java   
@Override
public PrintJobAttributeSet getAttributes(){
    synchronized(this){
        if(jobAttrSet == null){
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        }else{
            return jobAttrSet;
        }
    }
}
项目:jdk8u-jdk    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:jdk8u-jdk    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:jdk8u-jdk    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:openjdk-jdk10    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:openjdk-jdk10    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:openjdk-jdk10    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:openjdk9    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:openjdk9    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:openjdk9    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:jdk8u_jdk    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:jdk8u_jdk    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:jdk8u_jdk    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:infobip-open-jdk-8    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:infobip-open-jdk-8    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:infobip-open-jdk-8    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:jdk8u-dev-jdk    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:jdk8u-dev-jdk    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:jdk8u-dev-jdk    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:jdk7-jdk    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:jdk7-jdk    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:jdk7-jdk    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:openjdk-source-code-learn    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:openjdk-source-code-learn    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:openjdk-source-code-learn    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:OLD-OpenJDK8    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}
项目:OLD-OpenJDK8    文件:Win32PrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:OLD-OpenJDK8    文件:UnixPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
          return jobAttrSet;
        }
    }
}
项目:cn1    文件:WinPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    final PrintJobAttributeSet attrs = service.getPrinterProps()
                    .getAttributes(new HashPrintJobAttributeSet());

    for (Attribute attr : attrs.toArray()) {
        if (!(attr instanceof PrintJobAttribute)) {
            attrs.remove(attr);
        }
    }

    return AttributeSetUtilities.unmodifiableView(attrs);
}
项目:cn1    文件:All2PSDocPrintJob.java   
protected All2PSDocPrintJob(StreamPrintService printService) {
    super();
    begetPrintService = printService;
    printJobListeners = new ArrayList();
    printJobAttributeListeners = new ArrayList();
    printJobAttributeSet = new HashPrintJobAttributeSet();
    jobName = "PS printing";
    copies = 1;
    outstream = new PrintStream(printService.getOutputStream());
}
项目:cn1    文件:DefaultPrintJob.java   
public DefaultPrintJob(DefaultPrintService printservice) {
    if (printservice == null) {
        throw new NullPointerException("Argument is null");
    }
    this.printService = printservice;
    this.printClient = printService.getPrintClient();
    printJobAS = new HashPrintJobAttributeSet();
    busyFlag = false;
}
项目:openjdk-jdk7u-jdk    文件:PSStreamPrintJob.java   
public PrintJobAttributeSet getAttributes() {
    synchronized (this) {
        if (jobAttrSet == null) {
            /* just return an empty set until the job is submitted */
            PrintJobAttributeSet jobSet = new HashPrintJobAttributeSet();
            return AttributeSetUtilities.unmodifiableView(jobSet);
        } else {
            return jobAttrSet;
        }
    }
}