|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.borg.model.undo.UndoLog
public class UndoLog
The UndoLog. This class maintains a stack of items that can be undone.
Method Summary | |
---|---|
void |
addItem(UndoItem item)
add an undo item to the log. |
void |
clear()
get rid of all undo items. |
void |
executeUndo()
execute the top undo item on the stack and remove it from the stack. |
(package private) Stack<UndoItem> |
getItems()
get all of the undo items. |
Collection<String> |
getItemStrings()
get descriptions for all items in the undo log. |
static UndoLog |
getReference()
get a reference to the undo log singleton. |
String |
getTopItem()
get a description of the top item on the stack. |
(package private) UndoItem |
pop()
Pop an item off of the stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UndoLog getReference()
public void addItem(UndoItem item)
item
- the itempublic final String getTopItem()
public Collection<String> getItemStrings()
public void executeUndo()
public void clear()
Stack<UndoItem> getItems()
UndoItem pop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |