Class AppointmentMadeController

java.lang.Object
com.ehealthsystem.appointment.AppointmentMadeController

public class AppointmentMadeController extends Object
Class for manager an ready made appointment
  • Field Details

    • doctorLabel

      javafx.scene.control.Label doctorLabel
      all 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 loadedAppointment
      contains the laodedAppointment
    • doctorGeoData

      String doctorGeoData
      contains 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:
      SQLException
      IOException
      InterruptedException
      com.google.maps.errors.ApiException
    • loadAppointment

      private void loadAppointment()
      load the appointment information
    • loadDoctor

      private void loadDoctor() throws SQLException, IOException, InterruptedException, com.google.maps.errors.ApiException
      load the doctors informaiton
      Throws:
      SQLException
      IOException
      InterruptedException
      com.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:
      IOException
      SQLException
      InterruptedException
      com.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:
      SQLException
      IOException
      javax.mail.MessagingException
    • handleBackButton

      public void handleBackButton(javafx.event.ActionEvent event) throws IOException
      return to primary view without any changes made
      Parameters:
      event - the event that is triggered the method call
      Throws:
      IOException