|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.DefaultStyledDocument.ElementBuffer
public class DefaultStyledDocument.ElementBuffer
要素の階層に対する変更を管理するクラスです。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK バージョン 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。
| コンストラクタの概要 | |
|---|---|
DefaultStyledDocument.ElementBuffer(Element root)
新しい ElementBuffer を作成します。 |
|
| メソッドの概要 | |
|---|---|
void |
change(int offset,
int length,
AbstractDocument.DefaultDocumentEvent de)
コンテンツを変更します。 |
protected void |
changeUpdate()
ドキュメントへの変更に対応して、要素の構造を更新します。 |
Element |
clone(Element parent,
Element clonee)
異なる親を使用して、この要素のコピーを作成します。 |
Element |
getRootElement()
ルート要素を取得します。 |
void |
insert(int offset,
int length,
DefaultStyledDocument.ElementSpec[] data,
AbstractDocument.DefaultDocumentEvent de)
新しいコンテンツを挿入します。 |
protected void |
insertUpdate(DefaultStyledDocument.ElementSpec[] data)
更新をドキュメントに挿入します。 |
void |
remove(int offset,
int length,
AbstractDocument.DefaultDocumentEvent de)
コンテンツを削除します。 |
protected void |
removeUpdate()
ドキュメント内の関連するシーケンスからの削除に応答して、要素の構造を更新します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public DefaultStyledDocument.ElementBuffer(Element root)
root - ルート要素| メソッドの詳細 |
|---|
public Element getRootElement()
public void insert(int offset,
int length,
DefaultStyledDocument.ElementSpec[] data,
AbstractDocument.DefaultDocumentEvent de)
offset - 開始オフセット >= 0length - 長さ >= 0data - 挿入するデータde - この編集をキャプチャするイベント
public void remove(int offset,
int length,
AbstractDocument.DefaultDocumentEvent de)
offset - 開始オフセット >= 0length - 長さ >= 0de - この編集をキャプチャするイベント
public void change(int offset,
int length,
AbstractDocument.DefaultDocumentEvent de)
offset - 開始オフセット >= 0length - 長さ >= 0de - この編集をキャプチャするイベントprotected void insertUpdate(DefaultStyledDocument.ElementSpec[] data)
data - 挿入する要素protected void removeUpdate()
protected void changeUpdate()
public Element clone(Element parent,
Element clonee)
parent - 親要素clonee - 複製する要素
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。