Java 类javax.print.event.PrintJobAttributeListener 实例源码

项目:OpenJSharp    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:OpenJSharp    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:OpenJSharp    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:OpenJSharp    文件:Win32PrintJob.java   
@Override
public void removePrintJobAttributeListener(PrintJobAttributeListener listener){
    synchronized(this){
        if(listener == null || attrListeners == null){
            return;
        }
        int index = attrListeners.indexOf(listener);
        if(index == -1){
            return;
        }else{
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if(attrListeners.isEmpty()){
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk8u-jdk    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk8u-jdk    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk8u-jdk    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk-jdk10    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk-jdk10    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk-jdk10    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk9    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk9    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk9    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk8u_jdk    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk8u_jdk    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk8u_jdk    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:infobip-open-jdk-8    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:infobip-open-jdk-8    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:infobip-open-jdk-8    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk8u-dev-jdk    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk8u-dev-jdk    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk8u-dev-jdk    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk7-jdk    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk7-jdk    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:jdk7-jdk    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk-source-code-learn    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk-source-code-learn    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk-source-code-learn    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:OLD-OpenJDK8    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:OLD-OpenJDK8    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:OLD-OpenJDK8    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目: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);
            }
        }
    }
}
项目:openjdk-jdk7u-jdk    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk-jdk7u-jdk    文件:Win32PrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目:openjdk-jdk7u-jdk    文件:UnixPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}
项目: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);
            }
        }
    }
}
项目:openjdk-icedtea7    文件:PSStreamPrintJob.java   
public void removePrintJobAttributeListener(
                                    PrintJobAttributeListener listener) {
    synchronized (this) {
        if (listener == null || attrListeners == null ) {
            return;
        }
        int index = attrListeners.indexOf(listener);
        if (index == -1) {
            return;
        } else {
            attrListeners.remove(index);
            listenedAttributeSets.remove(index);
            if (attrListeners.isEmpty()) {
                attrListeners = null;
                listenedAttributeSets = null;
            }
        }
    }
}