Package com.ehealthsystem.appointment
Class AppointmentMadeController
java.lang.Object
com.ehealthsystem.appointment.AppointmentMadeController
Class for manager an ready made appointment
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) javafx.scene.control.Label(package private) javafx.scene.control.Button(package private) javafx.scene.control.Label(package private) Stringcontains the doctor geodata for loading the map(package private) javafx.scene.control.Labelall attributes with a fx:id in the view(package private) javafx.scene.control.Button(package private) javafx.scene.control.Label(package private) Appointmentcontains the laodedAppointment(package private) javafx.scene.web.WebView(package private) javafx.scene.control.Label(package private) javafx.scene.control.Label -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleBackButton(javafx.event.ActionEvent event) return to primary view without any changes madevoidhandleCancelButton(javafx.event.ActionEvent event) Cancel the selected appointmentvoidhandleEditAppointmentButton(javafx.event.ActionEvent event) Switch to edit appointment scene when button is pressedprivate voidload the appointment informationprivate voidload the doctors informaitonprivate voidloadGMap()load google maps into with webenginevoidstart(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:
SQLExceptionIOExceptionInterruptedExceptioncom.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:
SQLExceptionIOExceptionInterruptedExceptioncom.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:
IOExceptionSQLExceptionInterruptedExceptioncom.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:
SQLExceptionIOExceptionjavax.mail.MessagingException
-
handleBackButton
return to primary view without any changes made- Parameters:
event- the event that is triggered the method call- Throws:
IOException
-