|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcdox.gui.undo.InsertUndoAction
This class represents an insert action. Redo will insert the element again, undo will remove it.
| Constructor Summary | |
InsertUndoAction(Element e,
Cover c)
Creates a new one. |
|
| Method Summary | |
void |
invalidate()
This method invalidates the action, which typically means that the undo/redo methods do nothing. |
void |
redo()
Inserts the element. |
void |
undo()
Removes the element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InsertUndoAction(Element e,
Cover c)
e - the element that is inserted.c - the cover into which the element is inserted.| Method Detail |
public void redo()
redo in interface DoActionpublic void undo()
undo in interface DoActionpublic void invalidate()
DoAction
invalidate in interface DoAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||