Package com.ehealthsystem.doctor
Class FoundDoctorController
java.lang.Object
com.ehealthsystem.doctor.FoundDoctorController
manages all the found doctors of a distance search
-
Field Summary
Modifier and TypeFieldDescriptionprivate javafx.scene.control.Label
private javafx.scene.control.Label
(package private) DoctorDistance
distance to the doctor(package private) String
the doctor's geo data in formatted formprivate javafx.scene.control.Label
all attributes with a fx:id in the viewprivate javafx.scene.control.Button
private javafx.scene.control.Label
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleShowMoreButton
(javafx.event.ActionEvent event) Load the scene that shows detailed information for the selected doctorvoid
setData
(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:
IOException
InterruptedException
com.google.maps.errors.ApiException
SQLException
-