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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategoryPressed(javafx.event.ActionEvent actionEvent) Trigger when the add category button is pressed.voiddeleteCategoryPressed(javafx.event.ActionEvent actionEvent) Trigger when the delete category button is pressed.voidgoHome(javafx.event.ActionEvent event) Button to go to home page.voidinitialize(URL url, ResourceBundle resourceBundle)
-
Constructor Details
-
EditCategoryController
public EditCategoryController()
-
-
Method Details
-
initialize
- Specified by:
initializein 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.
-