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
- 
フィールド詳細- 
newAttributesprotected AttributeSet newAttributes追加のエントリを含むAttributeSetは、変更不可能でなければなりません!
- 
copyprotected AttributeSet copy要素に含まれるAttributeSetのコピー。
- 
isReplacingprotected boolean isReplacing要素のすべての属性が最初に削除された場合はtrue。
- 
elementprotected Element element影響を受ける要素。
 
- 
- 
コンストラクタの詳細- 
AttributeUndoableEditpublic AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)AttributeUndoableEditを構築します。- パラメータ:
- element- 要素
- newAttributes- 新しい属性
- isReplacing- 要素のすべての属性が最初に削除された場合はtrue。
 
 
- 
- 
メソッドの詳細- 
redopublic void redo() throws CannotRedoException変更をやり直します。- 定義:
- redo、インタフェース:- UndoableEdit
- オーバーライド:
- redo、クラス:- AbstractUndoableEdit
- 例外:
- CannotRedoException- 変更のやり直しができない場合
- 関連項目:
- AbstractUndoableEdit.canRedo()
 
- 
undopublic void undo() throws CannotUndoException変更を元に戻します。- 定義:
- undo、インタフェース:- UndoableEdit
- オーバーライド:
- undo、クラス:- AbstractUndoableEdit
- 例外:
- CannotUndoException- 変更を元に戻せない場合
- 関連項目:
- AbstractUndoableEdit.canUndo()
 
 
-