Class EditCategoryController

java.lang.Object
no.ntnu.idatt1002.spendwise.category.EditCategoryController
All Implemented Interfaces:
javafx.fxml.Initializable

public class EditCategoryController extends Object implements javafx.fxml.Initializable
Controller for the EditCategory.fxml window.
  • Constructor Details

    • EditCategoryController

      public EditCategoryController()
  • Method Details

    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      Specified by:
      initialize in interface javafx.fxml.Initializable
    • goHome

      public void goHome(javafx.event.ActionEvent event) throws IOException
      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 exists
      ConformityException - 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.