Package com.ehealthsystem.doctor
Class FoundDoctorController
java.lang.Object
com.ehealthsystem.doctor.FoundDoctorController
manages all the found doctors of a distance search
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javafx.scene.control.Labelprivate javafx.scene.control.Label(package private) DoctorDistancedistance to the doctor(package private) Stringthe doctor's geo data in formatted formprivate javafx.scene.control.Labelall attributes with a fx:id in the viewprivate javafx.scene.control.Buttonprivate javafx.scene.control.Label -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleShowMoreButton(javafx.event.ActionEvent event) Load the scene that shows detailed information for the selected doctorvoidsetData(DoctorDistance doctor, String doctorGeoData, double distance) Method to set the doctor's information when scene is loaded from outside
-
Field Details
-
doctorLabel
private javafx.scene.control.Label doctorLabelall attributes with a fx:id in the view -
addressLabel
private javafx.scene.control.Label addressLabel -
zipLabel
private javafx.scene.control.Label zipLabel -
distanceLabel
private javafx.scene.control.Label distanceLabel -
showMoreButton
private javafx.scene.control.Button showMoreButton -
doctor
DoctorDistance doctordistance to the doctor -
doctorGeoData
String doctorGeoDatathe doctor's geo data in formatted form
-
-
Constructor Details
-
FoundDoctorController
public FoundDoctorController()
-
-
Method Details
-
setData
Method to set the doctor's information when scene is loaded from outside- Parameters:
doctor- the doctor selecteddoctorGeoData- the doctor's geo datadistance- the distance from user to doctor
-
handleShowMoreButton
public void handleShowMoreButton(javafx.event.ActionEvent event) throws IOException, InterruptedException, com.google.maps.errors.ApiException, SQLException Load the scene that shows detailed information for the selected doctor- Parameters:
event- button click event- Throws:
IOExceptionInterruptedExceptioncom.google.maps.errors.ApiExceptionSQLException
-