|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.text.AbstractDocument.DefaultDocumentEvent
public class 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()
[再実行 (Redo)] メニュー項目などで使われる、この編集結果の、再実行できる形式の判読可能な地域に対応した記述を提供します。 |
DocumentEvent.EventType |
getType()
イベントのタイプを返します。 |
String |
getUndoPresentationName()
[元に戻す (Undo)] メニュー項目などで使われる、この編集結果の、元に戻せる形式の判読可能な地域に対応した記述を提供します。 |
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)
UndoableEdit 内の addEditCompoundEdit 内の addEditanEdit - ドキュメント編集レコード
UndoableEdit.addEdit(javax.swing.undo.UndoableEdit)
public void redo()
throws CannotRedoException
UndoableEdit 内の redoCompoundEdit 内の redoCannotRedoException - 変更を再実行できない場合AbstractUndoableEdit.canRedo()
public void undo()
throws CannotUndoException
UndoableEdit 内の undoCompoundEdit 内の undoCannotUndoException - 変更を元に戻せない場合AbstractUndoableEdit.canUndo()public boolean isSignificant()
UndoableEdit 内の isSignificantCompoundEdit 内の isSignificantUndoableEdit.isSignificant()public String getPresentationName()
UndoableEdit 内の getPresentationNameCompoundEdit 内の getPresentationNameAbstractUndoableEdit.getUndoPresentationName(),
AbstractUndoableEdit.getRedoPresentationName()public String getUndoPresentationName()
UndoableEdit 内の getUndoPresentationNameCompoundEdit 内の getUndoPresentationNameAbstractUndoableEdit.getPresentationName()public String getRedoPresentationName()
UndoableEdit 内の getRedoPresentationNameCompoundEdit 内の getRedoPresentationNameAbstractUndoableEdit.getPresentationName()public 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 Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。