|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.print.attribute.EnumSyntax
javax.print.attribute.standard.PrinterState
public final class PrinterState
PrinterState はプリンタの現在の状態を識別して列挙する印刷属性クラスです。プリンタの状態を表す標準値を定義します。印刷サービスが実装される場合、実装に適合するプリンタの状態だけを通知する必要があります。定義されたすべての状態を通知する必要はありません。PrinterStateReasons 属性は PrinterState 属性を拡張し、ある状態のプリンタについてより詳細な情報を提供します。
IPP 互換性: getName() で返されるカテゴリ名が IPP 属性名、列挙される整数値が IPP の値、toString() メソッドが返す値が属性値の IPP 文字列表現にそれぞれ対応します。
| フィールドの概要 | |
|---|---|
static PrinterState |
IDLE
新しいジョブをすぐに処理できることを示します。 |
static PrinterState |
PROCESSING
ジョブが処理中であることを示します。 |
static PrinterState |
STOPPED
ジョブの処理ができない状態であり、何らかのアクションをとる必要があることを示します。 |
static PrinterState |
UNKNOWN
プリンタの状態は不明です。 |
| コンストラクタの概要 | |
|---|---|
protected |
PrinterState(int value)
指定された整数値を使用して新しいプリンタ状態列挙値を構築します。 |
| メソッドの概要 | |
|---|---|
Class<? extends Attribute> |
getCategory()
この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。 |
protected EnumSyntax[] |
getEnumValueTable()
PrinterState クラスの列挙値テーブルを返します。 |
String |
getName()
属性値がインスタンスとなるカテゴリの名前を返します。 |
protected String[] |
getStringTable()
PrinterState クラスの文字列テーブルを返します。 |
| クラス javax.print.attribute.EnumSyntax から継承されたメソッド |
|---|
clone, getOffset, getValue, hashCode, readResolve, toString |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final PrinterState UNKNOWN
public static final PrinterState IDLE
public static final PrinterState PROCESSING
public static final PrinterState STOPPED
| コンストラクタの詳細 |
|---|
protected PrinterState(int value)
value - 整数値| メソッドの詳細 |
|---|
protected String[] getStringTable()
EnumSyntax 内の getStringTableprotected EnumSyntax[] getEnumValueTable()
EnumSyntax 内の getEnumValueTablepublic final Class<? extends Attribute> getCategory()
PrinterState クラスの場合、カテゴリは PrinterState クラス自身です。
Attribute 内の getCategoryjava.lang.Class クラスのインスタンスpublic final String getName()
PrinterState クラスの場合、カテゴリ名は printer-state になります。
Attribute 内の getName
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。