Java 类javax.print.attribute.PrintJobAttributeSet 实例源码
项目: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;
}
}
}
项目:javify
文件:PrintJobAttributeEvent.java
/**
* Constructs a <code>PrintJobAttributeEvent</code> object.
*
* @param source the source of this event
* @param attributes the attribute changes being reported
*/
public PrintJobAttributeEvent(DocPrintJob source,
PrintJobAttributeSet attributes)
{
super(source);
this.attributes = attributes;
}
项目:javify
文件:DocPrintJobImpl.java
/**
* @see DocPrintJob#addPrintJobAttributeListener(PrintJobAttributeListener, PrintJobAttributeSet)
*/
public void addPrintJobAttributeListener(PrintJobAttributeListener listener,
PrintJobAttributeSet attributes)
{
if (listener == null)
return;
attributesListener.add(listener);
attributesListenerAttributes.add(attributes);
}
项目:jvm-stm
文件:PrintJobAttributeEvent.java
/**
* Constructs a <code>PrintJobAttributeEvent</code> object.
*
* @param source the source of this event
* @param attributes the attribute changes being reported
*/
public PrintJobAttributeEvent(DocPrintJob source,
PrintJobAttributeSet attributes)
{
super(source);
this.attributes = attributes;
}
项目:jvm-stm
文件:DocPrintJobImpl.java
/**
* @see DocPrintJob#addPrintJobAttributeListener(PrintJobAttributeListener, PrintJobAttributeSet)
*/
public void addPrintJobAttributeListener(PrintJobAttributeListener listener,
PrintJobAttributeSet attributes)
{
if (listener == null)
return;
attributesListener.add(listener);
attributesListenerAttributes.add(attributes);
}
项目: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;
}
}
}