|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.std.util.Stateful<Appointment>
com.std.model.appointment.StatefulAppointment
public class StatefulAppointment
keeps track of a single appointment, and provides utilities of changing it in relation of it's parent set
Constructor Summary | |
---|---|
StatefulAppointment(Stateful<AppointmentSet> targetSet)
creates a new StatefulAppointment object with the passed target set, and defaulting to a null target |
Method Summary | |
---|---|
void |
apptSetChanged(AppointmentSet apptSet,
Appointment appt)
resets the target when the target is removed from the set |
void |
apptSetReplaced()
resets the target when the target set is changed |
void |
firstAppointment()
sets the target to the first chronological appointment |
void |
lastAppointment()
sets the target to the last chronological appointment |
void |
nextAppointment()
advances the target to the next chronological appointment or, if the target is null, sets it to the first chronological appointment |
void |
previousAppointment()
advances the target to the previous chronological appointment or, if the target is null, sets it to the last chronological appointment |
void |
setTarget(Appointment target)
sets the target appointment |
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 |
---|
public StatefulAppointment(Stateful<AppointmentSet> targetSet)
targetSet
- the set to derive all targets fromMethod Detail |
---|
public void apptSetReplaced()
public void apptSetChanged(AppointmentSet apptSet,
Appointment appt)
public void firstAppointment()
public void lastAppointment()
public void nextAppointment()
public void previousAppointment()
public void setTarget(Appointment target)
setTarget
in class Stateful<Appointment>
target
- the new target reference
java.lang.IllegalArgumentException
- if the intended
target is null or not a member of the parent set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |