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