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 |
|---|
DefaultStyledDocument.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 DefaultStyledDocument.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() Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2019, Oracle and/or its affiliates. All rights reserved.