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
FieldsModifier and TypeFieldDescription(package private) javafx.scene.control.Labelattributes 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleShowMoreButton(javafx.event.ActionEvent event) Event Handler to switch to the doctor scene to make an appointmentvoidsetData(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:
IOExceptionSQLExceptionInterruptedExceptioncom.google.maps.errors.ApiException
-