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
編集のレコードを構築します。 このコンストラクタは要素を変更しないため、モデルに付加されたばかりのビューに対して、現在のモデル状態にビューを合わせるために使用しても安全です。- パラメータ:
 e- 要素index- モデル内のインデックス>= 0removed- 削除された要素のセットadded- 追加された要素のセット
 
 - 
 - 
メソッドの詳細
- 
getElement
public Element getElement()処理対象の要素を返します。- 定義:
 getElement、インタフェース:DocumentEvent.ElementChange- 戻り値:
 - 要素
 
 - 
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- 変更のやり直しができない場合- 関連項目:
 AbstractUndoableEdit.canRedo()
 - 
undo
public void undo() throws CannotUndoException変更を元に戻します。- 定義:
 undo、インタフェース:UndoableEdit- オーバーライド:
 undo、クラス:AbstractUndoableEdit- 例外:
 CannotUndoException- 変更を元に戻せない場合- 関連項目:
 AbstractUndoableEdit.canUndo()
 
 -