Class ReportController

java.lang.Object
csce331.group13.project2.ui.ReportController

public class ReportController extends Object
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 Details

    • ReportController

      public ReportController()
  • Method Details

    • getInstance

      public static ReportController 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.