モジュール java.desktop
パッケージ javax.print.event

クラスPrintServiceAttributeEvent

  • すべての実装されたインタフェース:
    Serializable


    public class PrintServiceAttributeEvent
    extends PrintEvent
    PrintServiceAttributeEventクラスは、Print Serviceインスタンスが報告するイベントをカプセル化して、クライアントが印刷サービスの状態の変更を知ることができるようにします。
    関連項目:
    直列化された形式
    • コンストラクタの詳細

      • PrintServiceAttributeEvent

        public PrintServiceAttributeEvent​(PrintService source,
                                          PrintServiceAttributeSet attributes)
        PrintServiceAttributeEventオブジェクトを構築します。
        パラメータ:
        source - このイベントを生成する印刷ジョブ
        attributes - 報告される属性変更
        例外:
        IllegalArgumentException - sourcenullである場合。
    • メソッドの詳細

      • getPrintService

        public PrintService getPrintService​()
        印刷サービスを返します。
        戻り値:
        Print Serviceオブジェクト。
      • getAttributes

        public PrintServiceAttributeSet getAttributes​()
        変更された印刷サービス属性とその新しい値を判定します。
        戻り値:
        変更されたサービス属性の新しい値を保持する属性。 返されたセットは変更できない。