Class ExpensesController
java.lang.Object
no.ntnu.idatt1002.spendwise.expenses.ExpensesController
- All Implemented Interfaces:
javafx.fxml.Initializable
GUI controller for the expenses.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
goButtonPushed
(javafx.event.ActionEvent actionEvent) Trigger for the go button.void
goHome
(javafx.event.ActionEvent event) Trigger for when the the user clicks the home button.void
initialize
(URL url, ResourceBundle resourceBundle) Initializes the controller class.void
openHelpOption
(javafx.event.ActionEvent event) A button that opens the help option menu.void
switchToEditExpense
(javafx.event.ActionEvent event) Button that takes user to edit expenses.void
switchToFutureBudgeting
(javafx.event.ActionEvent event) Button that takes user to future budgeting.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
-
ExpensesController
public ExpensesController()
-
-
Method Details
-
goHome
Trigger for when the the user clicks the home button.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the FXML file can not be found.
-
switchToIncome
Button that takes user to income.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the FXML file can not be found.
-
switchToRecurringTransactions
Button that takes user to recurring transactions.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the FXML file can not be found.
-
switchToEditExpense
Button that takes user to edit expenses.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the FXML file can not be found.
-
switchToFutureBudgeting
Button that takes user to future budgeting.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the FXML file can not be found.
-
openHelpOption
A button that opens the help option menu.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the FXML file can not be found.
-
initialize
Initializes the controller class.- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
- The url to the FXML file.resourceBundle
- The resource bundle.
-
goButtonPushed
public void goButtonPushed(javafx.event.ActionEvent actionEvent) Trigger for the go button.- Parameters:
actionEvent
- The ActionEvent that triggered the method
-