Package Controllers

Class AppointmentController

java.lang.Object
Controllers.AppointmentController
All Implemented Interfaces:
javafx.fxml.Initializable

public class AppointmentController extends Object implements javafx.fxml.Initializable
Controller class for the Appoinment.fmxl form. Implements Initializable
  • Constructor Details

    • AppointmentController

      public AppointmentController()
  • Method Details

    • validate

      public Boolean validate()
      Validates inputs for the Appointment
    • handleSave

      public void handleSave(javafx.event.ActionEvent actionEvent) throws IOException
      Handles the save logic for the Appointment
      Throws:
      IOException
    • mapUpdating

      public void mapUpdating()
      Maps the textFields with data
    • mapLabels

      public void mapLabels()
      Maps the labels to the correct language
    • appointmentAlert

      public void appointmentAlert()
      Function that checks and alerts the user if they are within 15 minutes of an appointment
    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      Initializes the FXML Screen
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      url - parameter for the FXML Screen
      resourceBundle - parameter for the FXML Screen
    • openPage

      public void openPage(javafx.event.ActionEvent actionEvent, String form) throws IOException
      Utility function that is used to switch between pages
      Parameters:
      actionEvent - JavaFX action event
      Throws:
      IOException
    • displayError

      public void displayError(String text)
      Utility function that is used to display errors
      Parameters:
      text - String value text of the main text