FileDocCategorySizeDatePackage
InPatient.javaAPI DocExample844Tue Feb 12 13:34:00 GMT 2002hospital

InPatient

public class InPatient extends Object
Title: Nick Bowring Description: Copyright: Copyright (c) 2001 Company:
author
version
1.0

Fields Summary
private Ward
ward
private int
nrDaysResident
Constructors Summary
public InPatient()

  
Methods Summary
public intdisplayDetails(Graphics g, int x, int y)

    int newY = super.displayDetails(g, x, y);
    // newY is the next place to start drawing on the JPanel
    g.drawText("Number of days resident = "+nrDaysResident,x,newY);
    ward.displayDetails(g, x, newY+20);
    return newY+40;
  
public voidsetDetails(java.lang.String name, java.lang.String ID, int age, char sex, Consultant consultant, int nrDaysResident, Ward ward)

    super.setDetails(name,ID,age,sex,consultant);
    this.nrDaysResident = nrDaysResident;
    this.ward = ward;