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 element,
AttributeSet newAttributes,
boolean isReplacing) |
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, toString
protected AttributeSet newAttributes
protected AttributeSet copy
protected boolean isReplacing
protected Element element
public AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
public void redo() throws CannotRedoException
redo
in interface UndoableEdit
redo
in class AbstractUndoableEdit
CannotRedoException
- if the change cannot be redoneAbstractUndoableEdit.canRedo()
public void undo() throws CannotUndoException
undo
in interface UndoableEdit
undo
in class AbstractUndoableEdit
CannotUndoException
- if the change cannot be undoneAbstractUndoableEdit.canUndo()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.