|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
編集可能な文字のシーケンスを示すインタフェースです。実装では、変更が UndoableEdit の実装を返すかどうかを反映する、履歴機構をサポートしてもしなくてもかまいません。
AbstractDocument
メソッドの概要 | |
Position |
createPosition(int offset)
内容が変更されたときにそれを追跡するための位置を、内容の中に作成します。 |
void |
getChars(int where,
int len,
Segment txt)
文字のシーケンスを取得して、セグメントにコピーします。 |
String |
getString(int where,
int len)
シーケンスに含まれる文字列を取得します。 |
UndoableEdit |
insertString(int where,
String str)
シーケンスに文字列を挿入します。 |
int |
length()
文字シーケンスの、現在の長さです。 |
UndoableEdit |
remove(int where,
int nitems)
シーケンスの一部を削除します。 |
メソッドの詳細 |
public Position createPosition(int offset) throws BadLocationException
offset
- 内容のオフセット >= 0public int length()
public UndoableEdit insertString(int where, String str) throws BadLocationException
where
- 挿入するシーケンスまでのオフセット >= 0str
- 挿入する文字列public UndoableEdit remove(int where, int nitems) throws BadLocationException
where
- 削除するシーケンスまでのオフセット >= 0nitems
- 削除対象となるシーケンス内の項目の数 >= 0public String getString(int where, int len) throws BadLocationException
where
- 取得するシーケンスまでのオフセット >= 0len
- コピーする文字数 >= 0public void getChars(int where, int len, Segment txt) throws BadLocationException
where
- 文字列のオフセット >= 0len
- 文字の数 >= 0txt
- コピー先の位置
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |