Class EditCategoryController
java.lang.Object
no.ntnu.idatt1002.spendwise.category.EditCategoryController
- All Implemented Interfaces:
javafx.fxml.Initializable
Controller for the EditCategory.fxml window.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCategoryPressed
(javafx.event.ActionEvent actionEvent) Trigger when the add category button is pressed.void
deleteCategoryPressed
(javafx.event.ActionEvent actionEvent) Trigger when the delete category button is pressed.void
goHome
(javafx.event.ActionEvent event) Button to go to home page.void
initialize
(URL url, ResourceBundle resourceBundle)
-
Constructor Details
-
EditCategoryController
public EditCategoryController()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfacejavafx.fxml.Initializable
-
goHome
Button to go to home page.- Parameters:
event
- mouse click- Throws:
IOException
- if invalid input is detected.
-
addCategoryPressed
public void addCategoryPressed(javafx.event.ActionEvent actionEvent) throws DuplicateNameException, ConformityException Trigger when the add category button is pressed.- Parameters:
actionEvent
- Mouse click- Throws:
DuplicateNameException
- If the category name already existsConformityException
- If the category is not an expense or income
-
deleteCategoryPressed
public void deleteCategoryPressed(javafx.event.ActionEvent actionEvent) Trigger when the delete category button is pressed.- Parameters:
actionEvent
- Mouse click.
-