java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
- All Implemented Interfaces:
- Serializable,- UndoableEdit
- Enclosing class:
- DefaultStyledDocument
public static class DefaultStyledDocument.AttributeUndoableEdit extends AbstractUndoableEdit
An UndoableEdit used to remember AttributeSet changes to an
 Element.
- 
Field SummaryFields Modifier and Type Field Description protected AttributeSetcopyCopy of the AttributeSet the Element contained.protected ElementelementAffected Element.protected booleanisReplacingtrue if all the attributes in the element were removed first.protected AttributeSetnewAttributesAttributeSet containing additional entries, must be non-mutable!
- 
Constructor SummaryConstructors Constructor Description AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)Constructs anAttributeUndoableEdit.
- 
Method SummaryMethods declared in class javax.swing.undo.AbstractUndoableEditaddEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
- 
Field Details- 
newAttributesAttributeSet containing additional entries, must be non-mutable!
- 
copyCopy of the AttributeSet the Element contained.
- 
isReplacingprotected boolean isReplacingtrue if all the attributes in the element were removed first.
- 
elementAffected Element.
 
- 
- 
Constructor Details- 
AttributeUndoableEditConstructs anAttributeUndoableEdit.- Parameters:
- element- the element
- newAttributes- the new attributes
- isReplacing- true if all the attributes in the element were removed first.
 
 
- 
- 
Method Details- 
redoRedoes a change.- Specified by:
- redoin interface- UndoableEdit
- Overrides:
- redoin class- AbstractUndoableEdit
- Throws:
- CannotRedoException- if the change cannot be redone
- See Also:
- AbstractUndoableEdit.canRedo()
 
- 
undoUndoes a change.- Specified by:
- undoin interface- UndoableEdit
- Overrides:
- undoin class- AbstractUndoableEdit
- Throws:
- CannotUndoException- if the change cannot be undone
- See Also:
- AbstractUndoableEdit.canUndo()
 
 
-