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- 変更を元に戻せない場合- 関連項目:
-