JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.undo
クラス UndoableEditSupport

java.lang.Object
  |
  +--javax.swing.undo.UndoableEditSupport

public class UndoableEditSupport
extends Object

UndoableEdit リスナーを管理するために使用するサポートクラスです。


フィールドの概要
protected  CompoundEdit compoundEdit
           
protected  Vector 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 が呼び出されます。
 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
 

フィールドの詳細

updateLevel

protected int updateLevel

compoundEdit

protected CompoundEdit compoundEdit

listeners

protected Vector listeners

realSource

protected Object realSource
コンストラクタの詳細

UndoableEditSupport

public UndoableEditSupport()
UndoableEditSupport オブジェクトを構築します。

UndoableEditSupport

public UndoableEditSupport(Object r)
UndoableEditSupport オブジェクトを構築します。
パラメータ:
r - Object
メソッドの詳細

addUndoableEditListener

public void addUndoableEditListener(UndoableEditListener l)
UndoableEditListener を登録します。やり直しのできる編集が発生すると、必ずリスナーに通知されます。
パラメータ:
l - UndoableEditListener オブジェクト
関連項目:
removeUndoableEditListener(javax.swing.event.UndoableEditListener)

removeUndoableEditListener

public void removeUndoableEditListener(UndoableEditListener l)
UndoableEditListener を削除します。
パラメータ:
l - UndoableEditListener オブジェクト
関連項目:
addUndoableEditListener(javax.swing.event.UndoableEditListener)

_postEdit

protected void _postEdit(UndoableEdit e)
postEdit メソッドと endUpdate メソッドだけから呼び出されます。すべてのリスナーで undoableEditHappened を呼び出します。2 つの呼び出し側メソッドは同期をとられるので、ここで同期は実行されません。

postEdit

public void postEdit(UndoableEdit e)
デッドロック警告: このメソッドを呼び出すと、すべてのリスナーで undoableEditHappened が呼び出されます。このメソッドをそのリスナーの 1 つから呼び出すのは良い方法ではありません。

getUpdateLevel

public int getUpdateLevel()
更新レベルの値を返します。
戻り値:
更新レベルを表す int 値

beginUpdate

public void beginUpdate()

createCompoundEdit

protected CompoundEdit createCompoundEdit()
beginUpdate メソッドだけから呼び出されます。サブクラスでの使用のために、ここに公開されています。

endUpdate

public void endUpdate()
デッドロック警告: このメソッドを呼び出すと、すべてのリスナーで undoableEditHappened が呼び出されます。このメソッドをそのリスナーの 1 つから呼び出すのは良い方法ではありません。

toString

public String toString()
このオブジェクトのプロパティを表示および識別する文字列を返します。
オーバーライド:
クラス Object 内の toString
戻り値:
このオブジェクトの String 表現

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.