Module Lunchify

Class StatisticNumberOfInvoicesController

java.lang.Object
jku.se.Controller.StatisticNumberOfInvoicesController

public class StatisticNumberOfInvoicesController extends Object
Controller responsible for displaying and exporting statistics about the number of invoices per month using a bar chart.
  • Field Details

  • Constructor Details

    • StatisticNumberOfInvoicesController

      public StatisticNumberOfInvoicesController()
  • Method Details

    • initialize

      public void initialize()
      Initializes the chart and combo box. Loads the invoice data into the bar chart and sets available export formats.
    • exportPdf

      public void exportPdf() throws IOException
      Exports chart and data to a PDF file including detailed invoice info per user and month.
      Throws:
      IOException
    • exportCsv

      public void exportCsv() throws IOException
      Exports detailed invoice data to CSV format.
      Throws:
      IOException
    • exportJson

      public void exportJson() throws IOException
      Exports invoice statistics to JSON format.
      Throws:
      IOException