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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidFunction that checks and alerts the user if they are within 15 minutes of an appointmentvoiddisplayError(String text) Utility function that is used to display errorsvoidhandleSave(javafx.event.ActionEvent actionEvent) Handles the save logic for the Appointmentvoidinitialize(URL url, ResourceBundle resourceBundle) Initializes the FXML ScreenvoidMaps the labels to the correct languagevoidMaps the textFields with datavoidUtility 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:
 initializein 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
 
 -