Class StatusView

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

public class StatusView
extends DisplayPanel
implements Observer

View for the status of a patient.

See Also:
Serialized Form

Field Summary
protected  Patient model
          Patient data model for this.
 
Constructor Summary
StatusView(Patient aPatient)
          Constructs a status view for the given patient.
 
Method Summary
protected  void paintComponent(Graphics g)
          Paints this to the given graphics context.
 void setModel(Patient aPatient)
          Sets the model for this to the given patient.
 void update(Observable o, Object arg)
          Updates this.
 
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.

Constructor Detail

StatusView

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

Parameters:
aPatient - patient whose status is to be viewed
Method Detail

setModel

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

Parameters:
aPatient - model for this

update

public void update(Observable o,
                   Object arg)
Updates this.

Specified by:
update in interface Observer

paintComponent

protected void paintComponent(Graphics g)
Paints this to the given graphics context.

Parameters:
g - context to which to paint