|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.undo.UndoableEditSupport
public class UndoableEditSupport
UndoableEdit リスナーを管理するために使用するサポートクラスです。
| フィールドの概要 | |
|---|---|
protected CompoundEdit |
compoundEdit
|
protected Vector<UndoableEditListener> |
listeners
|
protected Object |
realSource
|
protected int |
updateLevel
|
| コンストラクタの概要 | |
|---|---|
UndoableEditSupport()
UndoableEditSupport オブジェクトを構築します。 |
|
UndoableEditSupport(Object r)
UndoableEditSupport オブジェクトを構築します。 |
|
| メソッドの概要 | |
|---|---|
protected void |
_postEdit(UndoableEdit e)
postEdit メソッドと endUpdate メソッドからだけ呼び出されます。 |
void |
addUndoableEditListener(UndoableEditListener l)
UndoableEditListener を登録します。 |
void |
beginUpdate()
|
protected CompoundEdit |
createCompoundEdit()
beginUpdate メソッドからだけ呼び出されます。 |
void |
endUpdate()
デッドロック警告: このメソッドを呼び出すと、すべてのリスナーで undoableEditHappened が呼び出されます。 |
UndoableEditListener[] |
getUndoableEditListeners()
addUndoableEditListener() によってこの UndoableEditSupport に追加されたすべての UndoableEditListener から成る配列を返します。 |
int |
getUpdateLevel()
更新レベルの値を返します。 |
void |
postEdit(UndoableEdit e)
デッドロック警告: このメソッドを呼び出すと、すべてのリスナーで undoableEditHappened が呼び出されます。 |
void |
removeUndoableEditListener(UndoableEditListener l)
UndoableEditListener を削除します。 |
String |
toString()
このオブジェクトのプロパティを表示および識別する文字列を返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
|---|
protected int updateLevel
protected CompoundEdit compoundEdit
protected Vector<UndoableEditListener> listeners
protected Object realSource
| コンストラクタの詳細 |
|---|
public UndoableEditSupport()
UndoableEditSupport オブジェクトを構築します。
public UndoableEditSupport(Object r)
UndoableEditSupport オブジェクトを構築します。
r - Object| メソッドの詳細 |
|---|
public void addUndoableEditListener(UndoableEditListener l)
UndoableEditListener を登録します。元に戻すことのできる編集が発生すると、必ずリスナーに通知されます。
l - UndoableEditListener オブジェクトremoveUndoableEditListener(javax.swing.event.UndoableEditListener)public void removeUndoableEditListener(UndoableEditListener l)
UndoableEditListener を削除します。
l - 削除する UndoableEditListener オブジェクトaddUndoableEditListener(javax.swing.event.UndoableEditListener)public UndoableEditListener[] getUndoableEditListeners()
UndoableEditListener から成る配列を返します。
UndoableEditListener。追加されたリスナーがない場合は空の配列protected void _postEdit(UndoableEdit e)
postEdit メソッドと endUpdate メソッドからだけ呼び出されます。すべてのリスナーで undoableEditHappened を呼び出します。2 つの呼び出し側メソッドは同期をとられるので、ここで同期は実行されません。
public void postEdit(UndoableEdit e)
undoableEditHappened が呼び出されます。このメソッドをそのリスナーの 1 つから呼び出すのは良い方法ではありません。
public int getUpdateLevel()
public void beginUpdate()
protected CompoundEdit createCompoundEdit()
beginUpdate メソッドからだけ呼び出されます。サブクラスで使用するために、ここに公開されています。
public void endUpdate()
undoableEditHappened が呼び出されます。このメソッドをそのリスナーの 1 つから呼び出すのは良い方法ではありません。
public String toString()
Object 内の toStringString 表現
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。