Package Utils
Class SceneSwitch
java.lang.Object
Utils.SceneSwitch
The class handles switching scenes when the Navigation buttons are pressed.
- Since:
- 2023-03-07
-
Field Summary
Modifier and TypeFieldDescriptionprivate DataTrendsController
DataTrendsController
to load the menu editting windowprivate EditMenuController
EditMenuController
to load the menu editting windowprivate EmployeeController
OrderController
to load the Order windowprivate Controller.Reports.ExcessReport
ExcessReport
to load the excess report windowprivate InventoryController
InventoryController
to load the inventory windowprivate LoginController
LoginController
to load the Order windowprivate OrderController
OrderController
to load the Order windowprivate OrderHistoryController
OrderHistoryController
to load the order history windowprivate Controller.Reports.RestockReport
RestockReport
to load the restock report windowprivate Controller.Reports.SalesReport
SalesReport
to load the sales report windowprivate Controller.Reports.SalesTogetherReport
SalesTogetherReport
to load the sales together report windowprivate SessionData
SessionData
to pass information between the various scenesprivate Controller.Reports.XZReport
XZReport
to load the XZ report window -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
LoginTransition
(javafx.event.ActionEvent event, SessionData session) Loads a the new window bassed on the navigation button pressed.void
switchReportScene
(javafx.event.ActionEvent event) Switch to the Report Windowvoid
switchScene
(javafx.event.ActionEvent event) Loads a new Controller based on which navigation button was pressed
-
Field Details
-
session
SessionData
to pass information between the various scenes -
loginController
LoginController
to load the Order window -
employeeController
OrderController
to load the Order window -
orderController
OrderController
to load the Order window -
orderHistoryController
OrderHistoryController
to load the order history window -
inventoryController
InventoryController
to load the inventory window -
editMenuController
EditMenuController
to load the menu editting window -
dataTrendsController
DataTrendsController
to load the menu editting window -
salesReportController
private Controller.Reports.SalesReport salesReportControllerSalesReport
to load the sales report window -
xzReportController
private Controller.Reports.XZReport xzReportControllerXZReport
to load the XZ report window -
excessReportController
private Controller.Reports.ExcessReport excessReportControllerExcessReport
to load the excess report window -
restockReportController
private Controller.Reports.RestockReport restockReportControllerRestockReport
to load the restock report window -
salesTogetherReportController
private Controller.Reports.SalesTogetherReport salesTogetherReportControllerSalesTogetherReport
to load the sales together report window
-
-
Constructor Details
-
SceneSwitch
Constructor- Parameters:
session
-SessionData
to send information between the various windows
-
-
Method Details
-
LoginTransition
Loads a the new window bassed on the navigation button pressed.- Parameters:
event
-ActionEvent
passed when pressing aButton
session
-SessionData
to pass between controllers- Throws:
IOException
- if the new window failed to load
-
switchScene
Loads a new Controller based on which navigation button was pressed- Parameters:
event
-ActionEvent
of theButton
pressed- Throws:
IOException
- if loading the new window failed
-
switchReportScene
Switch to the Report Window- Parameters:
event
-ActionEvent
of the ReportButton
- Throws:
IOException
- if loading the new window fails
-