java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.text.AbstractDocument.ElementEdit
- すべての実装されたインタフェース:
Serializable,DocumentEvent.ElementChange,UndoableEdit
- 含まれているクラス:
AbstractDocument
public static class AbstractDocument.ElementEdit extends AbstractUndoableEdit implements DocumentEvent.ElementChange
ドキュメントのイベントに追加できるElementChangeの実装です。
-
フィールドのサマリー
クラスjavax.swing.undo.AbstractUndoableEditで宣言されたフィールド
RedoName, UndoName -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
クラスjavax.swing.undo.AbstractUndoableEditで宣言されたメソッド
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
コンストラクタの詳細
-
ElementEdit
-
-
メソッドの詳細
-
getElement
-
getIndex
public int getIndex()要素のリスト内のインデックスを返します。- 定義:
getIndex、インタフェースDocumentEvent.ElementChange- 戻り値:
- インデックス>= 0
-
getChildrenRemoved
public Element[] getChildrenRemoved()削除された子のリストを取得します。- 定義:
getChildrenRemoved、インタフェースDocumentEvent.ElementChange- 戻り値:
- リスト
-
getChildrenAdded
public Element[] getChildrenAdded()追加された子のリストを取得します。- 定義:
getChildrenAdded、インタフェースDocumentEvent.ElementChange- 戻り値:
- リスト
-
redo
public void redo() throws CannotRedoException変更をやり直します。- 定義:
redo、インタフェースUndoableEdit- オーバーライド:
redo、クラスAbstractUndoableEdit- 例外:
CannotRedoException- 変更のやり直しができない場合- 関連項目:
-
undo
public void undo() throws CannotUndoException変更を元に戻します。- 定義:
undo、インタフェースUndoableEdit- オーバーライド:
undo、クラスAbstractUndoableEdit- 例外:
CannotUndoException- 変更を元に戻せない場合- 関連項目:
-