public class StableCompoundEdit extends Object implements UndoableEdit
CompoundEdit but guarantees
stability of internal state even if undo()/redo() throws an exception.| Constructor and Description |
|---|
StableCompoundEdit() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEdit(UndoableEdit anEdit) |
boolean |
canRedo() |
boolean |
canUndo() |
void |
die() |
void |
end() |
List<UndoableEdit> |
getEdits() |
String |
getPresentationName() |
String |
getRedoPresentationName() |
String |
getUndoPresentationName() |
boolean |
isInProgress() |
boolean |
isSignificant() |
protected UndoableEdit |
lastEdit() |
void |
redo() |
boolean |
replaceEdit(UndoableEdit anEdit) |
String |
toString() |
void |
undo() |
public final List<UndoableEdit> getEdits()
public void die()
die in interface UndoableEditpublic void undo()
throws CannotUndoException
undo in interface UndoableEditCannotUndoExceptionpublic boolean canUndo()
canUndo in interface UndoableEditpublic void redo()
throws CannotRedoException
redo in interface UndoableEditCannotRedoExceptionpublic boolean canRedo()
canRedo in interface UndoableEditpublic boolean addEdit(UndoableEdit anEdit)
addEdit in interface UndoableEditpublic boolean replaceEdit(UndoableEdit anEdit)
replaceEdit in interface UndoableEditpublic boolean isSignificant()
isSignificant in interface UndoableEditpublic String getPresentationName()
getPresentationName in interface UndoableEditpublic String getUndoPresentationName()
getUndoPresentationName in interface UndoableEditpublic String getRedoPresentationName()
getRedoPresentationName in interface UndoableEditpublic void end()
public boolean isInProgress()
protected UndoableEdit lastEdit()
Built on February 21 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.