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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayError(String text) Utility function that is used to display errorsvoidhandleCountrySelect(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a countryvoidhandleSave(javafx.event.ActionEvent actionEvent) Handles the save logic for the Customervoidinitialize(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 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:
initializein 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
-