Package com.ehealthsystem.appointment
Class AppointmentController
java.lang.Object
com.ehealthsystem.appointment.AppointmentController
Class for dynamically adding the doctor information when they are in the set search distance
-
Field Summary
Modifier and TypeFieldDescription(package private) javafx.scene.control.Label
attributes with a fx:id of the view(package private) javafx.scene.control.Label
(package private) Appointment
(package private) javafx.scene.control.Button
(package private) javafx.scene.control.Label
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleShowMoreButton
(javafx.event.ActionEvent event) Event Handler to switch to the doctor scene to make an appointmentvoid
setData
(Appointment appointment) first method that is called when loading the scene.
-
Field Details
-
dateLabel
javafx.scene.control.Label dateLabelattributes with a fx:id of the view -
timeLabel
javafx.scene.control.Label timeLabel -
doctorLabel
javafx.scene.control.Label doctorLabel -
showMoreButton
javafx.scene.control.Button showMoreButton -
loadedAppointment
Appointment loadedAppointment
-
-
Constructor Details
-
AppointmentController
public AppointmentController()
-
-
Method Details
-
setData
first method that is called when loading the scene. Used to set the doctors date- Parameters:
appointment
- the appointment that currently made- Throws:
SQLException
-
handleShowMoreButton
public void handleShowMoreButton(javafx.event.ActionEvent event) throws IOException, SQLException, InterruptedException, com.google.maps.errors.ApiException Event Handler to switch to the doctor scene to make an appointment- Parameters:
event
-- Throws:
IOException
SQLException
InterruptedException
com.google.maps.errors.ApiException
-