Class CarePlanController

java.lang.Object
edu.ntnu.idata1002.prosjekt2021.ui.CarePlanController

public class CarePlanController
extends java.lang.Object
Controller for the careplan scene.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  CarePlanController.ButtonList
    Constant values for how the lists are displayed.
  • Constructor Summary

    Constructors
    Constructor Description
    CarePlanController()  
  • Method Summary

    Modifier and Type Method Description
    void setCarePlan​(Patient patient)
    Retrieves the patient from the previous scene and sets up the careplan lists ready for being displayed.
    void setPatientLabel​(java.lang.String patientName)
    Sets the patient name in the patient label.
    void setUserLabel​(java.lang.String usersName)
    Sets the users name in a label to display.
    void setUserPic​(javafx.scene.image.Image userPic)
    Formats the users profile picture.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CarePlanController

      public CarePlanController()
  • Method Details

    • setPatientLabel

      public void setPatientLabel​(java.lang.String patientName)
      Sets the patient name in the patient label.
      Parameters:
      patientName - the patients name to be displayed.
    • setUserLabel

      public void setUserLabel​(java.lang.String usersName)
      Sets the users name in a label to display.
      Parameters:
      usersName - the usersname to be displayed.
    • setUserPic

      public void setUserPic​(javafx.scene.image.Image userPic)
      Formats the users profile picture.
      Parameters:
      userPic - picture to be formatted.
    • setCarePlan

      public void setCarePlan​(Patient patient)
      Retrieves the patient from the previous scene and sets up the careplan lists ready for being displayed.
      Parameters:
      patient - the patient who's careplans is to be displayed.