public class UndoableEditSupport extends Object
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() |
このオブジェクトのプロパティを表示および識別する文字列を返します。
|
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つから呼び出すのは良い方法ではありません。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。