|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UndoableChange
This abstract class provides a basis for implementing undoable changes in other classes. Note that if implementations of this class are coded as nested sub-classes these implementations should be declared static. If this is not done, when the instance of the class is written an instance of the enclosing class is also written. (This isn't a bug, it's a feature. If you don't believe that, then reread how sub-classes work.)
UndoableEdit| Method Summary | |
|---|---|
void |
die()
Clean up an UndoableChange item. |
boolean |
merge(UndoableChange item)
Attempt to merge two items together. |
void |
redo()
Redo a change to an object. |
boolean |
sameGroup(UndoableChange item)
Determine if the given item can be included in the same group as the current item. |
void |
undo()
Undo a change to an object. |
| Method Detail |
|---|
void undo()
void redo()
void die()
boolean merge(UndoableChange item)
item - the item to merge into this one. Will not be null.
boolean sameGroup(UndoableChange item)
item - the item to compare with. Will not be null.
true if the two items can be included
in the same group, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||