Package com.ehealthsystem.appointment
Class AppointmentMadeController
java.lang.Object
com.ehealthsystem.appointment.AppointmentMadeController
Class for manager an ready made appointment
-
Field Summary
Modifier and TypeFieldDescription(package private) javafx.scene.control.Label
(package private) javafx.scene.control.Button
(package private) javafx.scene.control.Label
(package private) String
contains the doctor geodata for loading the map(package private) javafx.scene.control.Label
all attributes with a fx:id in the view(package private) javafx.scene.control.Button
(package private) javafx.scene.control.Label
(package private) Appointment
contains the laodedAppointment(package private) javafx.scene.web.WebView
(package private) javafx.scene.control.Label
(package private) javafx.scene.control.Label
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleBackButton
(javafx.event.ActionEvent event) return to primary view without any changes madevoid
handleCancelButton
(javafx.event.ActionEvent event) Cancel the selected appointmentvoid
handleEditAppointmentButton
(javafx.event.ActionEvent event) Switch to edit appointment scene when button is pressedprivate void
load the appointment informationprivate void
load the doctors informaitonprivate void
loadGMap()
load google maps into with webenginevoid
start
(Appointment appointment) first method called when scene is switched
-
Field Details
-
doctorLabel
javafx.scene.control.Label doctorLabelall attributes with a fx:id in the view -
addressLabel
javafx.scene.control.Label addressLabel -
specializationsLabel
javafx.scene.control.Label specializationsLabel -
dateLabel
javafx.scene.control.Label dateLabel -
timeLabel
javafx.scene.control.Label timeLabel -
healthProblemLabel
javafx.scene.control.Label healthProblemLabel -
mapWebView
javafx.scene.web.WebView mapWebView -
editAppointmentButton
javafx.scene.control.Button editAppointmentButton -
cancelAppointmentButton
javafx.scene.control.Button cancelAppointmentButton -
loadedAppointment
Appointment loadedAppointmentcontains the laodedAppointment -
doctorGeoData
String doctorGeoDatacontains the doctor geodata for loading the map
-
-
Constructor Details
-
AppointmentMadeController
public AppointmentMadeController()
-
-
Method Details
-
start
public void start(Appointment appointment) throws SQLException, IOException, InterruptedException, com.google.maps.errors.ApiException first method called when scene is switched- Parameters:
appointment
- the selected Appointment is passed- Throws:
SQLException
IOException
InterruptedException
com.google.maps.errors.ApiException
-
loadAppointment
private void loadAppointment()load the appointment information -
loadDoctor
private void loadDoctor() throws SQLException, IOException, InterruptedException, com.google.maps.errors.ApiExceptionload the doctors informaiton- Throws:
SQLException
IOException
InterruptedException
com.google.maps.errors.ApiException
-
loadGMap
private void loadGMap()load google maps into with webengine -
handleEditAppointmentButton
public void handleEditAppointmentButton(javafx.event.ActionEvent event) throws IOException, SQLException, InterruptedException, com.google.maps.errors.ApiException Switch to edit appointment scene when button is pressed- Parameters:
event
- the event that is triggered the method call- Throws:
IOException
SQLException
InterruptedException
com.google.maps.errors.ApiException
-
handleCancelButton
public void handleCancelButton(javafx.event.ActionEvent event) throws SQLException, IOException, javax.mail.MessagingException Cancel the selected appointment- Parameters:
event
- the event that is triggered the method call- Throws:
SQLException
IOException
javax.mail.MessagingException
-
handleBackButton
return to primary view without any changes made- Parameters:
event
- the event that is triggered the method call- Throws:
IOException
-