Package Controller
Class DataTrendsController
java.lang.Object
Controller.DataTrendsController
This class handles the data trends scene/tab of the GUI
- Since:
- 2023-03-06
-
Field Summary
Modifier and TypeFieldDescriptionprivate javafx.scene.control.Button
Button
Button to navigate to the data trends sceneprivate javafx.scene.control.Button
Button
Button to navigate edit menu sceneprivate javafx.scene.control.Button
Button
Button to navigate employees sceneprivate javafx.scene.control.Button
Button
Button to navigate inventory sceneprivate javafx.scene.control.Button
Button
Button to logoutprivate javafx.scene.control.Button
Button
Button to navigate order sceneprivate javafx.scene.control.Button
Button
Button to navigate order history sceneprivate javafx.scene.control.Button
Button
to switch toSalesReport
private SceneSwitch
Switches between scenes or tabsprivate SessionData
Current session data -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
navButtonClicked
(javafx.event.ActionEvent event) Handle switching scenes through the navigation barvoid
reportButtonClicked
(javafx.event.ActionEvent event) Handle switching scenes through the report query window
-
Field Details
-
session
Current session data- See Also:
-
sceneSwitch
Switches between scenes or tabs- See Also:
-
orderButton
private javafx.scene.control.Button orderButtonButton
Button to navigate order scene -
orderHistoryButton
private javafx.scene.control.Button orderHistoryButtonButton
Button to navigate order history scene -
inventoryButton
private javafx.scene.control.Button inventoryButtonButton
Button to navigate inventory scene -
employeesButton
private javafx.scene.control.Button employeesButtonButton
Button to navigate employees scene -
editMenuButton
private javafx.scene.control.Button editMenuButtonButton
Button to navigate edit menu scene -
dataTrendsButton
private javafx.scene.control.Button dataTrendsButtonButton
Button to navigate to the data trends scene -
logoutButton
private javafx.scene.control.Button logoutButtonButton
Button to logout -
salesReportButton
private javafx.scene.control.Button salesReportButtonButton
to switch toSalesReport
-
-
Constructor Details
-
DataTrendsController
Constructor- Parameters:
session
-SessionData
passed in fromSceneSwitch
-
-
Method Details
-
reportButtonClicked
Handle switching scenes through the report query window- Parameters:
event
-ActionEvent
of theButton
pressed- Throws:
IOException
- if loading the new GUI failed