public static class DefaultStyledDocument.AttributeUndoableEdit extends AbstractUndoableEdit
| Modifier and Type | Field and Description |
|---|---|
protected AttributeSet |
copy
|
protected Element |
element
|
protected boolean |
isReplacing
|
protected AttributeSet |
newAttributes
|
RedoName, UndoName| Constructor and Description |
|---|
AttributeUndoableEdit(Element
|
| Modifier and Type | Method and Description |
|---|---|
void |
redo()
Redoes a change.
|
void |
undo()
Undoes a change.
|
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toStringprotected AttributeSetnewAttributes
protected AttributeSetcopy
protected boolean isReplacing
protected Elementelement
public AttributeUndoableEdit(Elementelement, AttributeSet newAttributes, boolean isReplacing)
public void redo()
throws CannotRedoException
redo in interface
UndoableEdit
redo in class
AbstractUndoableEdit
CannotRedoException - if the change cannot be redone
AbstractUndoableEdit.canRedo()
public void undo()
throws CannotUndoException
undo in interface
UndoableEdit
undo in class
AbstractUndoableEdit
CannotUndoException - if the change cannot be undone
AbstractUndoableEdit.canUndo()