|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UndoManager
Provides the ability to undo changes to a file system.
Note that the complexities of file system I/O are significant and Java does not provide full access to a file lock API that would simplify coding of implementations. Therefore undoing changes to the file system is a best-effort basis only, and designs should not rely on robust, guaranteed, fail-safe undo semantics.
Method Summary | |
---|---|
void |
add(UndoableOperation undoableOperation)
Registers an undoable operation in the Stack . |
void |
reset()
Resets the undo Stack , and guarantees to clear the Stack . |
boolean |
undo()
Replays the undo Stack , and guarantees to clear the Stack . |
Method Detail |
---|
void add(UndoableOperation undoableOperation)
Stack
.
undoableOperation
- to register in a Stack
(required)boolean undo()
Stack
, and guarantees to clear the Stack
.
The first operation that returns false to UndoableOperation.undo()
will cause the remainder
of the Stack
to stop undoing.
Executing this command guarantees the Stack
will be empty upon return, with every element either
undone or reset.
UndoableOperation
s in the Stack
were successfully undonevoid reset()
Stack
, and guarantees to clear the Stack
.
Executing this command guarantees the Stack
will be empty upon return, with every element reset.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |