|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectreport.Node
report.Field
public class Field
テキスト編集のレイアウトを構築するための「フィールド」ノード。
親ノードは、レコード。子ノードはもたない。
フィールドの概要 | |
---|---|
static int |
MIN_ROW
フィールドのレコード内の桁位置の最小値 |
static int |
MIN_WIDTH
フィールド幅の桁数の最小値 |
private int |
row
フィールドのレコード内の桁位置 |
private FieldType |
type
フィールドが固定文字列を保持するか編集フィールドかの区分 |
private FieldFormat |
userFormatter
パッケージのユーザが編集フィールドのフォーマットを行うために指定したハンドラ |
private java.lang.String |
value
フィールドの固定文字列あるいは置換キーワード |
private int |
width
フィールド幅の桁数 |
コンストラクタの概要 | |
---|---|
Field(int row,
int width,
FieldType type,
java.lang.String value)
フィールドに、フィールド桁位置、フィールド幅桁数、固定文字列か置換フィールドの区分、固定文字列か置換キーワードを指定するコンストラクタ。 |
|
Field(int row,
int width,
FieldType type,
java.lang.String value,
FieldFormat userFormatter)
フィールドに、フィールド桁位置、フィールド幅桁数、固定文字列か置換フィールドの区分、固定文字列か置換キーワード、ユーザ定義フォーマッタ・ハンドラを指定するコンストラクタ。 |
|
Field(Record ancestor,
int row,
int width,
FieldType type,
java.lang.String value)
フィールドに、親ノード、フィールド桁位置、フィールド幅桁数、固定文字列か置換フィールドの区分、固定文字列か置換キーワードを指定するコンストラクタ。 |
|
Field(Record ancestor,
int row,
int width,
FieldType type,
java.lang.String value,
FieldFormat userFormatter)
フィールドに、親ノード、フィールド桁位置、フィールド幅桁数、固定文字列か置換フィールドの区分、固定文字列か置換キーワード、ユーザ定義フォーマッタ・ハンドラを指定するコンストラクタ。 |
メソッドの概要 | |
---|---|
Field |
add(java.util.List<Node> children)
フィールドに子ノードをリストで指定した場合に例外を発生する。 |
Field |
add(Node... children)
フィールドに可変個の子ノードを指定した場合に例外を発生する。 |
Field |
adda(Node[] children)
フィールドに子ノードを配列で指定した場合に例外を発生する。 |
int |
getRow()
フィールドのレコード内の桁位置のゲッタ。 |
FieldType |
getType()
フィールドが固定文字列か編集フィールドかを表す区分のゲッタ。 |
(package private) FieldFormat |
getUserFormatter()
パッケージのユーザが編集フィールドのフォーマットを行うために指定したハンドラのゲッタ。 |
java.lang.String |
getValue()
フィールドの固定文字列あるいは置換キーワードのゲッタ。 |
int |
getWidth()
フィールド幅の桁数のゲッタ。 |
Field |
merge(Node another)
他のノードの子ノードをこのフィールドに取り込もうとした場合に例外を発生する。 |
Field |
verify()
フィールドの正当性を確認する。 |
クラス report.Node から継承されたメソッド |
---|
add, getAncestor, getChildren, getRootLayout, isEmpty, isOrphanNode, nullSafe, setAncestor, setChildren |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int MIN_ROW
private int row
public static final int MIN_WIDTH
private int width
private FieldType type
private java.lang.String value
private FieldFormat userFormatter
コンストラクタの詳細 |
---|
public Field(Record ancestor, int row, int width, FieldType type, java.lang.String value, FieldFormat userFormatter)
ancestor
- 親ノード (レコード) を渡す。row
- フィールドの桁位置を渡す。width
- フィールド幅の桁数を渡す。type
- 固定文字列か置換フィールドかの区分 (FieldType) を渡す。value
- 固定文字列か置換キーワードを渡す。userFormatter
- ユーザ定義のフォーマッタを渡す。public Field(Record ancestor, int row, int width, FieldType type, java.lang.String value)
ancestor
- 親ノード (レコード) を渡す。row
- フィールドの桁位置を渡す。width
- フィールド幅の桁数を渡す。type
- 固定文字列か置換フィールドかの区分 (FieldType) を渡す。value
- 固定文字列か置換キーワードを渡す。public Field(int row, int width, FieldType type, java.lang.String value, FieldFormat userFormatter)
row
- フィールドの桁位置を渡す。width
- フィールド幅の桁数を渡す。type
- 固定文字列か置換フィールドかの区分 (FieldType) を渡す。value
- 固定文字列か置換キーワードを渡す。userFormatter
- ユーザ定義のフォーマッタを渡す。public Field(int row, int width, FieldType type, java.lang.String value)
row
- フィールドの桁位置を渡す。width
- フィールド幅の桁数を渡す。type
- 固定文字列か置換フィールドかの区分 (FieldType) を渡す。value
- 固定文字列か置換キーワードを渡す。メソッドの詳細 |
---|
public int getRow()
public int getWidth()
public FieldType getType()
public java.lang.String getValue()
FieldFormat getUserFormatter()
public Field adda(Node[] children) throws ReportException
Node
内の adda
children
- 子ノードの配列を渡す。
常に
- ReportException を投げる (フィールドに子ノードは存在しないので)
ReportException
public Field add(Node... children) throws ReportException
Node
内の add
children
- 可変個の子ノードを渡す。
常に
- ReportException を投げる (フィールドに子ノードは存在しないので)
ReportException
public Field add(java.util.List<Node> children) throws ReportException
children
- 子ノードのリストを渡す。
常に
- ReportException を投げる (フィールドに子ノードは存在しないので)
ReportException
public Field merge(Node another) throws ReportException
Node
内の merge
another
- 他のノードを渡す。
常に
- ReportException を投げる (フィールドに子ノードは存在しないので)
ReportException
public Field verify() throws ReportException
Node
内の verify
正当でない場合に
- ReportException を投げる。
ReportException
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |