Class ReportController
java.lang.Object
csce331.group13.project2.ui.ReportController
Controller for the reports hub view.
Allows managers to select and view various reports including sales, product usage,
restock, X-Reports, and Z-Reports.
- Author:
- Austin Glander
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReportControllerReturns the singleton instance of the ReportController for consistent navigation control.voidInitializes the report selector dropdown and attaches event listeners.voidsetPrimaryStage(javafx.stage.Stage stage) Sets the primary stage for navigation.
-
Constructor Details
-
ReportController
public ReportController()
-
-
Method Details
-
getInstance
Returns the singleton instance of the ReportController for consistent navigation control.- Returns:
- The single ReportController instance.
-
setPrimaryStage
public void setPrimaryStage(javafx.stage.Stage stage) Sets the primary stage for navigation.- Parameters:
stage- The main application window
-
initialize
public void initialize()Initializes the report selector dropdown and attaches event listeners. Dynamically shows or hides date pickers depending on report type. Also defines button behavior for viewing the selected report.
-