Package Controllers

Class CustomerController

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

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

    • CustomerController

      public CustomerController()
  • Method Details

    • validate

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

      public void handleSave(javafx.event.ActionEvent actionEvent) throws IOException
      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

      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
    • mapUpdating

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

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

      public void displayError(String text)
      Utility function that is used to display errors
      Parameters:
      text - String value text of the main text
    • 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