|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--javax.swing.undo.AbstractUndoableEdit
|
+--javax.swing.undo.CompoundEdit
|
+--javax.swing.text.AbstractDocument.DefaultDocumentEvent
ドキュメントが変更されるときに、変更を格納します。その後、ドキュメントの変更のトランザクションが完了したときに、変更の通知に使用できます。AbstractDocument クラスとその拡張が、変更の情報をドキュメントリスナーに配信するために使用することもできます。
| クラス javax.swing.event.DocumentEvent から継承した内部クラス |
DocumentEvent.ElementChange, DocumentEvent.EventType |
| クラス javax.swing.undo.CompoundEdit から継承したフィールド |
edits |
| クラス javax.swing.undo.AbstractUndoableEdit から継承したフィールド |
RedoName, UndoName |
| コンストラクタの概要 | |
AbstractDocument.DefaultDocumentEvent(int offs,
int len,
DocumentEvent.EventType type)
変更のレコードを構築します。 |
|
| メソッドの概要 | |
boolean |
addEdit(UndoableEdit anEdit)
ドキュメントの編集を追加します。 |
DocumentEvent.ElementChange |
getChange(Element elem)
要素への変更を取得します。 |
Document |
getDocument()
変更のイベントのソースとなるドキュメントを取得します。 |
int |
getLength()
変更の長さを返します。 |
int |
getOffset()
変更の開始点となる、ドキュメント内のオフセットを返します。 |
String |
getPresentationName()
地域対応された、人間に読める形式で、編集の説明を提供します。 |
String |
getRedoPresentationName()
地域対応された、人間に読める形式で、再実行できる形式の編集の説明を提供します。 |
DocumentEvent.EventType |
getType()
イベントのタイプを返します。 |
String |
getUndoPresentationName()
地域対応された、人間に読める形式で、元に戻せる形式の編集の説明を提供します。 |
boolean |
isSignificant()
DefaultDocument の各イベントは重要です。 |
void |
redo()
変更を再実行します。 |
String |
toString()
変更のイベントの、文字列による説明を返します。 |
void |
undo()
変更を元に戻します。 |
| クラス javax.swing.undo.CompoundEdit から継承したメソッド |
canRedo, canUndo, die, end, isInProgress, lastEdit |
| クラス javax.swing.undo.AbstractUndoableEdit から継承したメソッド |
replaceEdit |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public AbstractDocument.DefaultDocumentEvent(int offs,
int len,
DocumentEvent.EventType type)
offs - ドキュメントの変更位置のオフセット >= 0len - 変更の長さ >= 0type - イベントのタイプ (DocumentEvent.EventType)| メソッドの詳細 |
public String toString()
CompoundEdit 内の toStringpublic boolean addEdit(UndoableEdit anEdit)
CompoundEdit 内の addEditanEdit - ドキュメントの編集レコード
public void redo()
throws CannotRedoException
CompoundEdit 内の redoCannotRedoException - 変更を再実行できない場合
public void undo()
throws CannotUndoException
CompoundEdit 内の undoCannotUndoException - 変更を元に戻せない場合public boolean isSignificant()
CompoundEdit 内の isSignificantpublic String getPresentationName()
CompoundEdit 内の getPresentationNamepublic String getUndoPresentationName()
CompoundEdit 内の getUndoPresentationNamepublic String getRedoPresentationName()
CompoundEdit 内の getRedoPresentationNamepublic DocumentEvent.EventType getType()
DocumentEvent 内の getTypeDocumentEvent.getType()public int getOffset()
DocumentEvent 内の getOffsetDocumentEvent.getOffset()public int getLength()
DocumentEvent 内の getLengthDocumentEvent.getLength()public Document getDocument()
DocumentEvent 内の getDocumentDocumentEvent.getDocument()public DocumentEvent.ElementChange getChange(Element elem)
DocumentEvent 内の getChangeelem - 要素
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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.