Class SelectBudgetController
java.lang.Object
no.ntnu.idatt1002.demo.controller.SelectBudgetController
Class for selecting a budget from the archive.
- Since:
- 19.04.2023
- Author:
- Harry Linrui Xu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
exitWindow
(javafx.event.ActionEvent event) Closes the dialog box and clears the currently selected budget.void
Initializes the view when it is loaded.void
selectBudget
(javafx.event.Event event) Selects the budget in the budget list view and stores this value as the currently selected budget.void
showErrorDialogBox
(String title, String header, String content) Displays an error message dialog box with a customizable title, header and content.
-
Constructor Details
-
SelectBudgetController
public SelectBudgetController()
-
-
Method Details
-
initialize
public void initialize()Initializes the view when it is loaded. Prepares the view by adding event filters, instantiating the budget register and setting the list view. -
selectBudget
public void selectBudget(javafx.event.Event event) Selects the budget in the budget list view and stores this value as the currently selected budget.- Parameters:
event
- Double mouseclick or a click on the ok button.
-
exitWindow
public void exitWindow(javafx.event.ActionEvent event) Closes the dialog box and clears the currently selected budget.- Parameters:
event
- Button press on cancel button
-
showErrorDialogBox
Displays an error message dialog box with a customizable title, header and content.- Parameters:
title
- The dialog title.header
- The dialog header.content
- The dialog content.
-