PrintServiceAttributeEvent

PrintServiceAttributeEvent (인쇄 서비스 속성 이벤트)

PrintServiceAttributeEvent는 인쇄 서비스(Print Service) 인스턴스가 인쇄 서비스 상태의 변경을 클라이언트에게 알리기 위해 보고하는 이벤트를 캡슐화해요. PrintEvent를 상속받아요.

출처: Java API Reference

본문

생성자

public PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)

PrintServiceAttributeEvent 객체를 만들어요. source는 이 이벤트를 생성하는 인쇄 서비스(인쇄 작업), attributes는 보고되는 속성 변경이에요. sourcenull이면 IllegalArgumentException이 발생해요.

메서드

  • getPrintService(): 인쇄 서비스를 반환해요. PrintService 객체를 반환해요.
  • getAttributes(): 변경된 인쇄 서비스 속성과 그 새 값을 결정해요. 변경된 서비스 속성의 새 값을 담은 속성 집합을 반환해요. 반환 집합은 수정 불가일 수 있어요.

더 알아보기