Package Controllers
Class AppointmentController
java.lang.Object
Controllers.AppointmentController
- All Implemented Interfaces:
javafx.fxml.Initializable
Controller class for the Appoinment.fmxl form.
Implements Initializable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Function that checks and alerts the user if they are within 15 minutes of an appointmentvoid
displayError
(String text) Utility function that is used to display errorsvoid
handleSave
(javafx.event.ActionEvent actionEvent) Handles the save logic for the Appointmentvoid
initialize
(URL url, ResourceBundle resourceBundle) Initializes the FXML Screenvoid
Maps the labels to the correct languagevoid
Maps the textFields with datavoid
Utility function that is used to switch between pagesvalidate()
Validates inputs for the Appointment
-
Constructor Details
-
AppointmentController
public AppointmentController()
-
-
Method Details
-
validate
Validates inputs for the Appointment -
handleSave
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
Initializes the FXML Screen- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
- parameter for the FXML ScreenresourceBundle
- parameter for the FXML Screen
-
openPage
Utility function that is used to switch between pages- Parameters:
actionEvent
- JavaFX action event- Throws:
IOException
-
displayError
Utility function that is used to display errors- Parameters:
text
- String value text of the main text
-