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 - Objectpublic 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も参照してください。