com.std.model.appointment
Class PersistentAppointmentSet

java.lang.Object
extended by com.std.util.Stateful<U>
extended by com.std.util.Persistent<AppointmentSet>
extended by com.std.model.appointment.PersistentAppointmentSet

public class PersistentAppointmentSet
extends Persistent<AppointmentSet>

Persistent is a Stateful object that provides utilities to save and load to a file, and keeps track of the status of that file and whether or not it exists.

Author:
xxx

Constructor Summary
PersistentAppointmentSet()
          creates a new PersistentAppointmentSet holding a new and blank AppointmentSet
 
Method Summary
 void apptSetChanged()
          sets this as an observer to the current appointment set whenever it is replaced
 void setModified(AppointmentSet apptSet, Appointment appt)
          sets this as modified whenever the current appointment set is changed
 
Methods inherited from class com.std.util.Persistent
getFileName, isModified, load, load, load, load, save, save, save, setModified, setTarget, setTarget
 
Methods inherited from class com.std.util.Stateful
getTarget, onChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentAppointmentSet

public PersistentAppointmentSet()
creates a new PersistentAppointmentSet holding a new and blank AppointmentSet

Method Detail

apptSetChanged

public void apptSetChanged()
sets this as an observer to the current appointment set whenever it is replaced


setModified

public void setModified(AppointmentSet apptSet,
Appointment appt)
sets this as modified whenever the current appointment set is changed