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, toStringprotected 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 UndoableEditredo in class AbstractUndoableEditCannotRedoException - if the change cannot be redoneAbstractUndoableEdit.canRedo()public void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoException - if the change cannot be undoneAbstractUndoableEdit.canUndo()aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2021 aicas GmbH. All Rights Reserved.