Class RegisterModifiers

java.lang.Object
ntnu.team1.application.helpers.RegisterModifiers

public class RegisterModifiers extends Object
Class used for modifying the register
  • Constructor Details

    • RegisterModifiers

      public RegisterModifiers()
  • Method Details

    • editTask

      public static void editTask(Task existingTask)
      Method for creating a window where you can edit an existing task
      Parameters:
      existingTask - The task that should be edited
    • addNewTask

      public static void addNewTask()
      Creates a window for adding a new task
    • removeTask

      public static void removeTask(Task task) throws FileNotFoundException
      Creates a confiramtion dialog for removing a task
      Parameters:
      task - Task to be removed
      Throws:
      FileNotFoundException
    • removeAllTasksInCategory

      public static void removeAllTasksInCategory(int categoryId)
      Creates a confirmation for deleting a category, also deletes all tasks associated with the category
      Parameters:
      categoryId - Id of category to be deleted
    • addNewCategory

      public static void addNewCategory()
      Creates a window for adding a new category
    • editCategory

      public static void editCategory(Category selectedCategory)
      Creates a window for editing a category
      Parameters:
      selectedCategory - Category to be edited
    • removeCategory

      public static void removeCategory(Category selectedCategory) throws RemoveException
      Removes the selected category
      Parameters:
      selectedCategory - Category to be removed
      Throws:
      RemoveException - If it cant remove the selected category