- 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
copy
要素に含まれるAttributeSetのコピー。protected Element
element
影響を受ける要素。protected boolean
isReplacing
要素のすべての属性が最初に削除された場合はtrue。protected AttributeSet
newAttributes
追加のエントリを含むAttributeSetは、変更不可能でなければなりません!-
クラス javax.swing.undo.AbstractUndoableEditで宣言されたフィールド
RedoName, UndoName
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
AttributeUndoableEdit
を構築します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 void
redo()
変更をやり直します。void
undo()
変更を元に戻します。-
クラス 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
- 変更のやり直しができない場合- 関連項目:
AbstractUndoableEdit.canRedo()
-
undo
public void undo() throws CannotUndoException
変更を元に戻します。- 定義:
undo
、インタフェースUndoableEdit
- オーバーライド:
undo
、クラスAbstractUndoableEdit
- 例外:
CannotUndoException
- 変更を元に戻せない場合- 関連項目:
AbstractUndoableEdit.canUndo()
-
-