|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
内の getElement
public int getIndex()
DocumentEvent.ElementChange
内の getIndex
public Element[] getChildrenRemoved()
DocumentEvent.ElementChange
内の getChildrenRemoved
public Element[] getChildrenAdded()
DocumentEvent.ElementChange
内の getChildrenAdded
public void redo() throws CannotRedoException
AbstractUndoableEdit
内の redo
CannotRedoException
- 変更を再実行できない場合public void undo() throws CannotUndoException
AbstractUndoableEdit
内の undo
CannotUndoException
- 変更を元に戻せない場合
|
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.