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()