Package Controllers
Class ReportsController
java.lang.Object
Controllers.ReportsController
- All Implemented Interfaces:
javafx.fxml.Initializable
Controller class for the Main.fmxl form.
Implements Initializable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleASelect
(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a report Avoid
handleContactSelect
(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a Contactvoid
handleCountrySelect
(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a countryvoid
handleDivisionSelect
(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a divisionvoid
handleReturn
(javafx.event.ActionEvent actionEvent) Sends the user to the Main Screenvoid
initialize
(URL url, ResourceBundle resourceBundle) Initializes the FXML Screenvoid
Function that correctly maps all the labels to the correct languagevoid
Function that correctly maps all the tables with te correct ObservableListsvoid
Utility function that is used to switch between pagesvoid
updateA()
Function for updating the table and label for report Avoid
updateB()
Function for updating the table and label for report Bvoid
updateC()
Function for updating the table and label for report C
-
Constructor Details
-
ReportsController
public ReportsController()
-
-
Method Details
-
updateA
public void updateA()Function for updating the table and label for report A -
updateB
public void updateB()Function for updating the table and label for report B -
updateC
public void updateC()Function for updating the table and label for report C -
handleReturn
Sends the user to the Main Screen- Parameters:
actionEvent
- JavaFX action event- Throws:
IOException
-
handleASelect
public void handleASelect(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a report A -
handleContactSelect
public void handleContactSelect(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a Contact -
handleDivisionSelect
public void handleDivisionSelect(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a division -
handleCountrySelect
public void handleCountrySelect(javafx.event.ActionEvent actionEvent) Handles the combo box logix for selecting a country -
mapLabels
public void mapLabels()Function that correctly maps all the labels to the correct language -
mapTables
public void mapTables()Function that correctly maps all the tables with te correct ObservableLists -
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
-