Class FoundDoctorController

java.lang.Object
com.ehealthsystem.doctor.FoundDoctorController

public class FoundDoctorController extends Object
manages all the found doctors of a distance search
  • Field Details

    • doctorLabel

      private javafx.scene.control.Label doctorLabel
      all 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

      distance to the doctor
    • doctorGeoData

      String doctorGeoData
      the doctor's geo data in formatted form
  • Constructor Details

    • FoundDoctorController

      public FoundDoctorController()
  • Method Details

    • setData

      public void setData(DoctorDistance doctor, String doctorGeoData, double distance)
      Method to set the doctor's information when scene is loaded from outside
      Parameters:
      doctor - the doctor selected
      doctorGeoData - the doctor's geo data
      distance - 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