Package Controllers
Class CustomerController
java.lang.Object
Controllers.CustomerController
- All Implemented Interfaces:
javafx.fxml.Initializable
Controller class for the Customer.fmxl form.
Implements Initializable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
displayError
(String text) Utility function that is used to display errorsvoid
handleCountrySelect
(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a countryvoid
handleSave
(javafx.event.ActionEvent actionEvent) Handles the save logic for the Customervoid
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 Customer
-
Constructor Details
-
CustomerController
public CustomerController()
-
-
Method Details
-
validate
Validates inputs for the Customer -
handleSave
Handles the save logic for the Customer- Throws:
IOException
-
handleCountrySelect
public void handleCountrySelect(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a country -
initialize
Initializes the FXML Screen- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
- parameter for the FXML ScreenresourceBundle
- parameter for the FXML Screen
-
mapUpdating
public void mapUpdating()Maps the textFields with data -
mapLabels
public void mapLabels()Maps the labels to the correct language -
displayError
Utility function that is used to display errors- Parameters:
text
- String value text of the main text
-
openPage
Utility function that is used to switch between pages- Parameters:
actionEvent
- JavaFX action event- Throws:
IOException
-