Class BudgetingController
java.lang.Object
no.ntnu.idatt1002.spendwise.budgeting.BudgetingController
Class that controls the budgeting window.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Triggers when the add expense amount button is pressed.void
Triggers when the add income amount button is pressed.void
Triggers when the date is chosen.void
Fills the charts displaying data.void
goHome
(javafx.event.ActionEvent event) A button that opens the help option menu.void
openHelpOption
(javafx.event.ActionEvent actionEvent) Trigger for opening the help option menu.void
switchToEditIncome
(javafx.event.ActionEvent event) Button that takes user to edit income.void
switchToIncome
(javafx.event.ActionEvent event) Button that takes user to income.void
switchToRecurringTransactions
(javafx.event.ActionEvent event) Button that takes user to recurring transactions.
-
Constructor Details
-
BudgetingController
public BudgetingController() throws DuplicateNameException, IOException, URISyntaxException, ConformityExceptionConstructor for the budgeting controller.- Throws:
DuplicateNameException
- If the name of the category is already in the register.IOException
- If the file is not found.URISyntaxException
- If the URI is not correct.ConformityException
- If the data is not correct.
-
-
Method Details
-
dateChosen
public void dateChosen()Triggers when the date is chosen. -
addExpenseAmountPressed
public void addExpenseAmountPressed()Triggers when the add expense amount button is pressed. -
addIncomeAmountPressed
public void addIncomeAmountPressed()Triggers when the add income amount button is pressed. -
fillCharts
public void fillCharts()Fills the charts displaying data. -
switchToIncome
Button that takes user to income.- Parameters:
event
- mouse click.- Throws:
IOException
- if wrong input detected.
-
switchToRecurringTransactions
Button that takes user to recurring transactions.- Parameters:
event
- mouse click.- Throws:
IOException
- if wrong input detected.
-
switchToEditIncome
Button that takes user to edit income.- Parameters:
event
- mouse click.- Throws:
IOException
- if wrong input detected.
-
goHome
A button that opens the help option menu.- Parameters:
event
- - mouse click- Throws:
IOException
- - if wrong input detected
-
openHelpOption
Trigger for opening the help option menu.- Parameters:
actionEvent
- Mouse click- Throws:
IOException
- If the FXML file is not found
-