java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
- すべての実装されたインタフェース:
Serializable
,UndoableEdit
- 含まれているクラス:
DefaultStyledDocument
public static class DefaultStyledDocument.AttributeUndoableEdit extends AbstractUndoableEdit
UndoableEditは、ElementのAttributeSetに加えられた変更を記憶するために使います。
-
フィールドのサマリー
修飾子と型フィールド説明protected AttributeSet
要素に含まれるAttributeSetのコピー。protected Element
影響を受ける要素。protected boolean
要素のすべての属性が最初に削除された場合はtrue。protected AttributeSet
追加のエントリを含むAttributeSetは、変更不可能でなければなりません!クラス javax.swing.undo.AbstractUndoableEditで宣言されたフィールド
RedoName, UndoName
-
コンストラクタのサマリー
コンストラクタ説明AttributeUndoableEdit
(Element element, AttributeSet newAttributes, boolean isReplacing) AttributeUndoableEdit
を構築します。 -
メソッドのサマリー
クラス javax.swing.undo.AbstractUndoableEditで宣言されたメソッド
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
フィールド詳細
-
newAttributes
protected AttributeSet newAttributes追加のエントリを含むAttributeSetは、変更不可能でなければなりません! -
copy
protected AttributeSet copy要素に含まれるAttributeSetのコピー。 -
isReplacing
protected boolean isReplacing要素のすべての属性が最初に削除された場合はtrue。 -
element
protected Element element影響を受ける要素。
-
-
コンストラクタの詳細
-
AttributeUndoableEdit
public AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing) AttributeUndoableEdit
を構築します。- パラメータ:
element
- 要素newAttributes
- 新しい属性isReplacing
- 要素のすべての属性が最初に削除された場合はtrue。
-
-
メソッドの詳細
-
redo
public void redo() throws CannotRedoException変更をやり直します。- 定義:
redo
、インタフェースUndoableEdit
- オーバーライド:
redo
、クラスAbstractUndoableEdit
- 例外:
CannotRedoException
- 変更のやり直しができない場合- 関連項目:
-
undo
public void undo() throws CannotUndoException変更を元に戻します。- 定義:
undo
、インタフェースUndoableEdit
- オーバーライド:
undo
、クラスAbstractUndoableEdit
- 例外:
CannotUndoException
- 変更を元に戻せない場合- 関連項目:
-