Class ScheduleLoader

java.lang.Object
com.ehealthsystem.appointment.ScheduleLoader
Direct Known Subclasses:
AppointmentShiftController, FoundDoctorFullController

public abstract class ScheduleLoader extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected javafx.scene.control.Label
     
    protected static final String
     
    (package private) javafx.scene.layout.GridPane
     
    protected LocalTime
     
    private ArrayList<javafx.scene.control.Label>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    handleTimeButton(javafx.scene.control.Label time, javafx.scene.control.Button timeButton)
    Sets up a clickable button that handles the click on an appointment time
    protected boolean
    loadSchedule(LocalDate date, Doctor doctor, javafx.scene.control.Label dateLabel, javafx.scene.control.Button primaryActionButton)
     
    protected void
    Handler that triggers whenever the user selected another time.
    private static void
    setStyle(javafx.scene.control.Label time, javafx.scene.control.Button timeButton, boolean free)
    set style for the free appointment labels and the buttons

    Methods inherited from class java.lang.Object

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

    • scheduleGridPane

      javafx.scene.layout.GridPane scheduleGridPane
    • errorLabel

      protected javafx.scene.control.Label errorLabel
    • timeLabelList

      private ArrayList<javafx.scene.control.Label> timeLabelList
    • selectedTime

      protected LocalTime selectedTime
    • NO_TIME_SELECTED

      protected static final String NO_TIME_SELECTED
      See Also:
  • Constructor Details

    • ScheduleLoader

      public ScheduleLoader()
  • Method Details

    • loadSchedule

      protected boolean loadSchedule(LocalDate date, Doctor doctor, javafx.scene.control.Label dateLabel, javafx.scene.control.Button primaryActionButton) throws SQLException, javax.activation.UnsupportedDataTypeException
      Parameters:
      date -
      doctor -
      dateLabel -
      primaryActionButton -
      Returns:
      true if at least one free time slot was loaded (=is displayed to the user)
      Throws:
      SQLException
      javax.activation.UnsupportedDataTypeException
    • handleTimeButton

      private void handleTimeButton(javafx.scene.control.Label time, javafx.scene.control.Button timeButton)
      Sets up a clickable button that handles the click on an appointment time
      Parameters:
      time - the time label for the associated button
      timeButton - the button to set up
    • selectedTimeChanged

      protected void selectedTimeChanged()
      Handler that triggers whenever the user selected another time. Empty in this abstract class, but can be overwritten in inheriting/extending classes to easily add functionality
    • setStyle

      private static void setStyle(javafx.scene.control.Label time, javafx.scene.control.Button timeButton, boolean free)
      set style for the free appointment labels and the buttons
      Parameters:
      time -
      timeButton -