Class PatientView

java.lang.Object
  |
  +--DisplayPanel
        |
        +--PatientView
All Implemented Interfaces:
Observer

public class PatientView
extends DisplayPanel
implements Observer

View for a patient.

See Also:
Serialized Form

Field Summary
protected  Patient model
          Patient data model for this.
protected  JLabel nameView
          View for name of patient.
protected  JLabel needView
          View for need of patient.
protected  StatusView statusView
          View for status of patient.
 
Constructor Summary
PatientView(Patient aPatient)
          Constructs a view for the given patient.
 
Method Summary
 Patient getModel()
          Returns the data model for this.
 void setModel(Patient aPatient)
          Sets the data model for this to the given model.
 void update(Observable o, Object arg)
          Updates this to show changes to the data model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected Patient model
Patient data model for this.


nameView

protected JLabel nameView
View for name of patient.


statusView

protected StatusView statusView
View for status of patient.


needView

protected JLabel needView
View for need of patient.

Constructor Detail

PatientView

public PatientView(Patient aPatient)
Constructs a view for the given patient.

Method Detail

setModel

public void setModel(Patient aPatient)
Sets the data model for this to the given model.


getModel

public Patient getModel()
Returns the data model for this.


update

public void update(Observable o,
                   Object arg)
Updates this to show changes to the data model.

Specified by:
update in interface Observer