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
FieldsModifier and TypeFieldDescriptionprivate DataTrendsControllerDataTrendsControllerto load the menu editting windowprivate EditMenuControllerEditMenuControllerto load the menu editting windowprivate EmployeeControllerOrderControllerto load the Order windowprivate Controller.Reports.ExcessReportExcessReportto load the excess report windowprivate InventoryControllerInventoryControllerto load the inventory windowprivate LoginControllerLoginControllerto load the Order windowprivate OrderControllerOrderControllerto load the Order windowprivate OrderHistoryControllerOrderHistoryControllerto load the order history windowprivate Controller.Reports.RestockReportRestockReportto load the restock report windowprivate Controller.Reports.SalesReportSalesReportto load the sales report windowprivate Controller.Reports.SalesTogetherReportSalesTogetherReportto load the sales together report windowprivate SessionDataSessionDatato pass information between the various scenesprivate Controller.Reports.XZReportXZReportto load the XZ report window - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidLoginTransition(javafx.event.ActionEvent event, SessionData session) Loads a the new window bassed on the navigation button pressed.voidswitchReportScene(javafx.event.ActionEvent event) Switch to the Report WindowvoidswitchScene(javafx.event.ActionEvent event) Loads a new Controller based on which navigation button was pressed 
- 
Field Details
- 
session
SessionDatato pass information between the various scenes - 
loginController
LoginControllerto load the Order window - 
employeeController
OrderControllerto load the Order window - 
orderController
OrderControllerto load the Order window - 
orderHistoryController
OrderHistoryControllerto load the order history window - 
inventoryController
InventoryControllerto load the inventory window - 
editMenuController
EditMenuControllerto load the menu editting window - 
dataTrendsController
DataTrendsControllerto load the menu editting window - 
salesReportController
private Controller.Reports.SalesReport salesReportControllerSalesReportto load the sales report window - 
xzReportController
private Controller.Reports.XZReport xzReportControllerXZReportto load the XZ report window - 
excessReportController
private Controller.Reports.ExcessReport excessReportControllerExcessReportto load the excess report window - 
restockReportController
private Controller.Reports.RestockReport restockReportControllerRestockReportto load the restock report window - 
salesTogetherReportController
private Controller.Reports.SalesTogetherReport salesTogetherReportControllerSalesTogetherReportto load the sales together report window 
 - 
 - 
Constructor Details
- 
SceneSwitch
Constructor- Parameters:
 session-SessionDatato send information between the various windows
 
 - 
 - 
Method Details
- 
LoginTransition
Loads a the new window bassed on the navigation button pressed.- Parameters:
 event-ActionEventpassed when pressing aButtonsession-SessionDatato 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-ActionEventof theButtonpressed- Throws:
 IOException- if loading the new window failed
 - 
switchReportScene
Switch to the Report Window- Parameters:
 event-ActionEventof the ReportButton- Throws:
 IOException- if loading the new window fails
 
 -