net.sf.borg.model.undo
Class UndoItem<T>

java.lang.Object
  extended by net.sf.borg.model.undo.UndoItem<T>
Direct Known Subclasses:
AddressUndoItem, AppointmentUndoItem, CheckListUndoItem, MemoUndoItem, ProjectUndoItem, SubtaskUndoItem, TaskUndoItem

public abstract class UndoItem<T>
extends Object

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

action

protected UndoItem.actionType action
The action that was taken.


item

protected T item
the KeyedEntity that can be undone

Constructor Detail

UndoItem

public UndoItem()
Method Detail

executeUndo

public abstract void executeUndo()
execute the undo action on the item.


setDescription

public void setDescription(String description)
Sets the undo item description.

Parameters:
description - the new description

getDescription

public String getDescription()
Gets the undo item description.

Returns:
the description


Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae