net.sf.borg.model.undo
Class AppointmentUndoItem

java.lang.Object
  extended by net.sf.borg.model.undo.UndoItem<Appointment>
      extended by net.sf.borg.model.undo.AppointmentUndoItem

public class AppointmentUndoItem
extends UndoItem<Appointment>

Appointment Undo Item.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.borg.model.undo.UndoItem
UndoItem.actionType
 
Field Summary
 
Fields inherited from class net.sf.borg.model.undo.UndoItem
action, item
 
Method Summary
 void executeUndo()
          execute the undo action on the item.
static AppointmentUndoItem recordAdd(Appointment appt)
          Record an appointment add.
static AppointmentUndoItem recordDelete(Appointment appt)
          Record an appointment delete.
static AppointmentUndoItem recordUpdate(Appointment appt)
          Record an appointment update.
 
Methods inherited from class net.sf.borg.model.undo.UndoItem
getDescription, setDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

executeUndo

public void executeUndo()
Description copied from class: UndoItem
execute the undo action on the item.

Specified by:
executeUndo in class UndoItem<Appointment>

recordUpdate

public static AppointmentUndoItem recordUpdate(Appointment appt)
Record an appointment update.

Parameters:
appt - the appt
Returns:
the appointment undo item

recordAdd

public static AppointmentUndoItem recordAdd(Appointment appt)
Record an appointment add.

Parameters:
appt - the appt
Returns:
the appointment undo item

recordDelete

public static AppointmentUndoItem recordDelete(Appointment appt)
Record an appointment delete.

Parameters:
appt - the appt
Returns:
the appointment undo item


Generated September 24 2010 by mbb using Apache Ant version 1.7.1 compiled on June 27 2008 and Java version 1.6.0_20 from Sun Microsystems Inc. on Linux i386 2.6.24-28-generic