Class NavigationController
java.lang.Object
csce331.group13.project2.ui.NavigationController
Singleton controller class that handles navigation between different views in the application.
Manages the switching between various screens including orders, inventory, menu, employees, cart, and reports.
- Author:
- Hussam Makhoul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NavigationControllerReturns the singleton instance of the NavigationController.voidNavigates to the cart viewvoidNavigates to the manager employee viewvoidNavigates to the inventory viewvoidNavigates to the menu management view.voidNavigates to the orders viewvoidNavigates to the reports view.voidsetPrimaryStage(javafx.stage.Stage stage) Sets the primary stage for navigation
-
Constructor Details
-
NavigationController
public NavigationController()
-
-
Method Details
-
getInstance
Returns the singleton instance of the NavigationController.- Returns:
- The single NavigationController instance.
-
setPrimaryStage
public void setPrimaryStage(javafx.stage.Stage stage) Sets the primary stage for navigation- Parameters:
stage- The primary stage of the application
-