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()
重作的变化。
|
void |
undo()
撤消更改。
|
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
接口
UndoableEdit
redo
方法重写,继承类
AbstractUndoableEdit
CannotRedoException
如果改变不能重来
AbstractUndoableEdit.canRedo()
public void undo() throws CannotUndoException
undo
接口
UndoableEdit
undo
方法重写,继承类
AbstractUndoableEdit
CannotUndoException
如果改变无法挽回
AbstractUndoableEdit.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, 2014, Oracle and/or its affiliates. All rights reserved.