java.lang.Object
jku.se.Controller.StatisticNumberOfInvoicesController
Controller responsible for displaying and exporting statistics
about the number of invoices per month using a bar chart.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Exports detailed invoice data to CSV format.void
Exports invoice statistics to JSON format.void
Exports chart and data to a PDF file including detailed invoice info per user and month.void
Initializes the chart and combo box.
-
Field Details
-
statistics
-
-
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
Exports chart and data to a PDF file including detailed invoice info per user and month.- Throws:
IOException
-
exportCsv
Exports detailed invoice data to CSV format.- Throws:
IOException
-
exportJson
Exports invoice statistics to JSON format.- Throws:
IOException
-