Example usage for javax.print.event PrintJobAttributeListener interface-usage

List of usage examples for javax.print.event PrintJobAttributeListener interface-usage

Introduction

In this page you can find the example usage for javax.print.event PrintJobAttributeListener interface-usage.

Usage

From source file Main.java

class MyPrintJobAttributeListener implements PrintJobAttributeListener {
    public void attributeUpdate(PrintJobAttributeEvent pjae) {
        Attribute[] attrs = pjae.getAttributes().toArray();
        for (int i = 0; i < attrs.length; i++) {
            String attrName = attrs[i].getName();
            String attrValue = attrs[i].toString();