|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--javax.swing.undo.AbstractUndoableEdit
|
+--javax.swing.text.AbstractDocument.ElementEdit
ドキュメントのイベントに追加できる ElementChange の実装です。
| フィールドの概要 |
| クラス javax.swing.undo.AbstractUndoableEdit から継承したフィールド |
RedoName, UndoName |
| コンストラクタの概要 | |
AbstractDocument.ElementEdit(Element e,
int index,
Element[] removed,
Element[] added)
編集のレコードを構築します。 |
|
| メソッドの概要 | |
Element[] |
getChildrenAdded()
追加された子のリストを返します。 |
Element[] |
getChildrenRemoved()
削除された子のリストを取得します。 |
Element |
getElement()
処理対象の要素を返します。 |
int |
getIndex()
要素のリスト中のインデックスを返します。 |
void |
redo()
変更を再実行します。 |
void |
undo()
変更を元に戻します。 |
| クラス javax.swing.undo.AbstractUndoableEdit から継承したメソッド |
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public AbstractDocument.ElementEdit(Element e,
int index,
Element[] removed,
Element[] added)
e - 要素index - モデルのインデックス >= 0removed - 削除された要素のセットadded - 追加された要素のセット| メソッドの詳細 |
public Element getElement()
DocumentEvent.ElementChange 内の getElementpublic int getIndex()
DocumentEvent.ElementChange 内の getIndexpublic Element[] getChildrenRemoved()
DocumentEvent.ElementChange 内の getChildrenRemovedpublic Element[] getChildrenAdded()
DocumentEvent.ElementChange 内の getChildrenAdded
public void redo()
throws CannotRedoException
UndoableEdit 内の redoAbstractUndoableEdit 内の redoCannotRedoException - 変更を再実行できない場合AbstractUndoableEdit.canRedo()
public void undo()
throws CannotUndoException
UndoableEdit 内の undoAbstractUndoableEdit 内の undoCannotUndoException - 変更を元に戻せない場合AbstractUndoableEdit.canUndo()
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.