Class EditIncomeController
java.lang.Object
no.ntnu.idatt1002.spendwise.income.EditIncomeController
- All Implemented Interfaces:
javafx.fxml.Initializable
GUI controller for edit income page.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Trigger for when the add income button is pressed.void
Trigger for when the delete income button is pressed.void
editCategoryButtonPushed
(javafx.event.ActionEvent event) Button to go to add category page.void
Method for filling the table view with the transactions.void
goHome
(javafx.event.ActionEvent event) Button to go to home page.void
initialize
(URL url, ResourceBundle resourceBundle) Initializes the controller class.void
openHelpEdit
(javafx.event.ActionEvent event) A button that opens the help option menu.void
switchToEditExpenses
(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
-
EditIncomeController
public EditIncomeController() throws DuplicateNameException, IOException, URISyntaxException, ConformityExceptionInitializes the controller class.- Throws:
DuplicateNameException
- If the name of the category is already in use.IOException
- If the file cannot be found.URISyntaxException
- If the URI is not valid.ConformityException
- If the category is not valid.
-
-
Method Details
-
deleteIncomePressed
Trigger for when the delete income button is pressed.- Throws:
ConformityException
- If the category is not valid.
-
addIncomePressed
Trigger for when the add income button is pressed.- Throws:
IOException
- If the file cannot be found.ConformityException
- If the category is not valid.
-
initialize
Initializes the controller class.- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
- The url of the fxml file.resourceBundle
- The resource bundle.
-
fillTableView
public void fillTableView()Method for filling the table view with the transactions. -
editCategoryButtonPushed
Button to go to add category page.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the fxml file can not be found.
-
goHome
Button to go to home page.- 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.
-
switchToFutureBudgeting
Button that takes user to future budgeting.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the FXML file can not be found.
-
switchToEditExpenses
Button that takes user to edit expenses.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the FXML file can not be found.
-
openHelpEdit
A button that opens the help option menu.- Parameters:
event
- Mouse click.- Throws:
IOException
- If the FXML file can not be found.
-