gov.lanl.Pids
Class PatientListNotifier

java.lang.Object
  |
  +--gov.lanl.Pids.PatientListNotifier

public class PatientListNotifier
extends java.lang.Object

The class PatientListNotifier is responsible for notifying all observer objects that are interested in patient list change events. A patient list change event, for example, is triggered every time the data in the PIDS client patient data changes.

 

Field Summary
static int PATIENT_LIST_CHANGED
           
 
Constructor Summary
PatientListNotifier()
           
 
Method Summary
 void addObserver(gov.lanl.Pids.PatientListObserver observer)
          adds a new observer to this object
 void notifyPatientListObserver(int event, java.util.Vector patientProfileVector)
          This method is called when this object needs to pass on a notification to its registered observers.
 void removeObserver(gov.lanl.Pids.PatientListObserver observer)
          removes an observer from this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATIENT_LIST_CHANGED

public static final int PATIENT_LIST_CHANGED
See Also:
Constant Field Values
Constructor Detail

PatientListNotifier

public PatientListNotifier()
Method Detail

addObserver

public void addObserver(gov.lanl.Pids.PatientListObserver observer)
adds a new observer to this object

Parameters:
observer - the patient list observer to be added

removeObserver

public void removeObserver(gov.lanl.Pids.PatientListObserver observer)
removes an observer from this object

Parameters:
observer - the patient list observer to be removed

notifyPatientListObserver

public void notifyPatientListObserver(int event,
                                      java.util.Vector patientProfileVector)
This method is called when this object needs to pass on a notification to its registered observers.

Parameters:
event - describes the type of event, such as PATIENT_LIST_CHANGED
patientProfileVector - a vector of TaggedProfile objects