Class IncomeController
java.lang.Object
no.ntnu.idatt1002.spendwise.income.IncomeController
- All Implemented Interfaces:
javafx.fxml.Initializable
GUI controller for income class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoideditCategoryButtonPushed(javafx.event.ActionEvent event) Trigger for when the the user clicks the edit category button.voidgoButtonPushed(javafx.event.ActionEvent actionEvent) Trigger for the go button.voidgoHome(javafx.event.ActionEvent event) Button to go to home page.voidinitialize(URL url, ResourceBundle resourceBundle) Initializes the controller.voidopenHelpOption(javafx.event.ActionEvent event) A button that opens the help option menu.voidswitchToEditIncome(javafx.event.ActionEvent event) Button that takes user to edit income.voidswitchToExpenses(javafx.event.ActionEvent event) Button that takes user to expenses.voidswitchToFutureBudgeting(javafx.event.ActionEvent event) Button that takes user to future budgeting.voidswitchToRecurringTransactions(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:
initializein 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
-