Example usage for javax.print.event PrintJobAttributeEvent getAttributes

List of usage examples for javax.print.event PrintJobAttributeEvent getAttributes

Introduction

In this page you can find the example usage for javax.print.event PrintJobAttributeEvent getAttributes.

Prototype

public PrintJobAttributeSet getAttributes() 

Source Link

Document

Determine the printing attributes that changed and their new values.

Usage

From source file:Main.java

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();
    }/*from w  w w  .  ja v  a  2  s. c  o m*/
}