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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTrigger for when the add income button is pressed.voidTrigger for when the delete income button is pressed.voideditCategoryButtonPushed(javafx.event.ActionEvent event) Button to go to add category page.voidMethod for filling the table view with the transactions.voidgoHome(javafx.event.ActionEvent event) Button to go to home page.voidinitialize(URL url, ResourceBundle resourceBundle) Initializes the controller class.voidopenHelpEdit(javafx.event.ActionEvent event) A button that opens the help option menu.voidswitchToEditExpenses(javafx.event.ActionEvent event) Button that takes user to edit expenses.voidswitchToFutureBudgeting(javafx.event.ActionEvent event) Button that takes user to future budgeting.voidswitchToIncome(javafx.event.ActionEvent event) Button that takes user to income.voidswitchToRecurringTransactions(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:
initializein 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.
-