Class MainController

java.lang.Object
no.ntnu.idatt.controller.MainController

public class MainController extends Object
The controller for main.fxml.

The controller contains current main List and methods for buttons/functionality.

  • Field Details

    • launchWithOutLists

      public javafx.scene.layout.AnchorPane launchWithOutLists
    • launchListLabel

      public javafx.scene.control.Label launchListLabel
    • launchListName

      public javafx.scene.control.TextField launchListName
  • Constructor Details

    • MainController

      public MainController()
  • Method Details

    • initialize

      public void initialize() throws IOException, ClassNotFoundException
      Automatically called to initialize a controller after its root element has been completely processed.
      Throws:
      IOException
      ClassNotFoundException
    • getLists

      public ArrayList<List> getLists()
    • getSaveFiles

      public ArrayList<SaveFile> getSaveFiles()
    • getList

      public List getList()
    • refactorList

      public void refactorList()
      Refresh main list of tasks
    • sortList

      public void sortList()
    • sortByDate

      public void sortByDate()
    • sortByPriority

      public void sortByPriority()
    • sortByName

      public void sortByName()
    • toggleCompletedTasks

      public void toggleCompletedTasks()
    • addTasksToTaskList

      public void addTasksToTaskList(ArrayList<Task> tasks)
      Adds every task in a list of tasks to the main screen
      Parameters:
      tasks -
    • showTaskExtendedLayer

      public void showTaskExtendedLayer(Task target, javafx.scene.layout.StackPane root)
    • handleCloseButtonAction

      public void handleCloseButtonAction(javafx.event.ActionEvent event) throws IOException, ClassNotFoundException
      Method to close application
      Parameters:
      event -
      Throws:
      IOException
      ClassNotFoundException
    • handleMinimizeButtonAction

      public void handleMinimizeButtonAction(javafx.event.ActionEvent event)
      Method to minimize application to the taskbar
      Parameters:
      event -
    • addTask

      public void addTask()
    • editTask

      public void editTask(Task task)
    • commitNewTask

      public void commitNewTask()
    • closeNewTaskMenu

      public void closeNewTaskMenu()
    • resetNewTaskLabels

      public void resetNewTaskLabels()
    • showListMenu

      public void showListMenu()
    • selectList

      public void selectList()
    • fillListArray

      public void fillListArray() throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException
    • fillListSelector

      public void fillListSelector()
    • closeNewListMenu

      public void closeNewListMenu()
    • closeChooseListMenu

      public void closeChooseListMenu()
    • addNewList

      public void addNewList()
    • addList

      public void addList()
    • launchNewList

      public void launchNewList()
    • handleChooseListButton

      public void handleChooseListButton()