|
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
内の toString
public boolean addEdit(UndoableEdit anEdit)
CompoundEdit
内の addEdit
anEdit
- ドキュメントの編集レコードpublic void redo() throws CannotRedoException
CompoundEdit
内の redo
CannotRedoException
- 変更を再実行できない場合public void undo() throws CannotUndoException
CompoundEdit
内の undo
CannotUndoException
- 変更を元に戻せない場合public boolean isSignificant()
CompoundEdit
内の isSignificant
public String getPresentationName()
CompoundEdit
内の getPresentationName
public String getUndoPresentationName()
CompoundEdit
内の getUndoPresentationName
public String getRedoPresentationName()
CompoundEdit
内の getRedoPresentationName
public DocumentEvent.EventType getType()
DocumentEvent
内の getType
DocumentEvent.getType()
public int getOffset()
DocumentEvent
内の getOffset
DocumentEvent.getOffset()
public int getLength()
DocumentEvent
内の getLength
DocumentEvent.getLength()
public Document getDocument()
DocumentEvent
内の getDocument
DocumentEvent.getDocument()
public DocumentEvent.ElementChange getChange(Element elem)
DocumentEvent
内の getChange
elem
- 要素
|
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.