|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.borg.model.undo.UndoItem<T>
public abstract class UndoItem<T extends KeyedEntity<T>>
Abstract base class for holding a single item of work that can be undone.
Nested Class Summary | |
---|---|
protected static class |
UndoItem.actionType
actions that can be applied to an item that need to be undone |
Field Summary | |
---|---|
protected UndoItem.actionType |
action
The action that was taken. |
protected T |
item
the KeyedEntity that can be undone |
Constructor Summary | |
---|---|
UndoItem()
|
Method Summary | |
---|---|
abstract void |
executeUndo()
execute the undo action on the item. |
String |
getDescription()
Gets the undo item description. |
void |
setDescription(String description)
Sets the undo item description. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected UndoItem.actionType action
protected T extends KeyedEntity<T> item
Constructor Detail |
---|
public UndoItem()
Method Detail |
---|
public abstract void executeUndo()
public void setDescription(String description)
description
- the new descriptionpublic String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |