Package com.ehealthsystem.appointment
Class ScheduleLoader
java.lang.Object
com.ehealthsystem.appointment.ScheduleLoader
- Direct Known Subclasses:
AppointmentShiftController
,FoundDoctorFullController
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
handleTimeButton
(javafx.scene.control.Label time, javafx.scene.control.Button timeButton) Sets up a clickable button that handles the click on an appointment timeprotected 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
-
Field Details
-
scheduleGridPane
javafx.scene.layout.GridPane scheduleGridPane -
errorLabel
protected javafx.scene.control.Label errorLabel -
timeLabelList
-
selectedTime
-
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 buttontimeButton
- 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
-
-