Class AppointmentFoundController

java.lang.Object
com.ehealthsystem.appointment.AppointmentFoundController
All Implemented Interfaces:
javafx.fxml.Initializable

public class AppointmentFoundController extends Object implements javafx.fxml.Initializable
Class which contains loads all the founds doctors based on the search distance
  • Field Details

    • errorLabel

      javafx.scene.control.Label errorLabel
      attributes with a fx:id of the view
    • doctorGridPane

      javafx.scene.layout.GridPane doctorGridPane
  • Constructor Details

    • AppointmentFoundController

      public AppointmentFoundController()
  • Method Details

    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      get the doctors in the selected distance in to an arraylist
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      url -
      resourceBundle -
    • loadDoctors

      private void loadDoctors(ArrayList<DoctorDistance> doctorList) throws IOException
      dynamically load the doctors in the grid pane
      Parameters:
      doctorList - the list of all doctors which matches the distance
      Throws:
      IOException
    • handleBackButton

      public void handleBackButton(javafx.event.ActionEvent event) throws IOException
      event handler for back button
      Parameters:
      event -
      Throws:
      IOException