Package ntnu.team1.application.category
Class CategoryListController
java.lang.Object
ntnu.team1.application.category.CategoryListController
Class that is used for displaying the categories
-
Field Summary
FieldsModifier and TypeFieldDescriptionColumn for colorColumn for delete buttonColumn for nameColumn for number of tasks in category -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method called for adding new categoryvoid
Method called for editing new categoryvoid
Initalize method that is run when the class is loaded.
-
Field Details
-
nameColumn
Column for name -
colorColumn
Column for color -
taskNumberColumn
Column for number of tasks in category -
deleteButtonColumn
Column for delete button
-
-
Constructor Details
-
CategoryListController
public CategoryListController()
-
-
Method Details
-
initialize
public void initialize()Initalize method that is run when the class is loaded. Creates the table view and updates it. Also creates buttons that are needed -
addNewCategory
public void addNewCategory()Method called for adding new category -
editCategory
public void editCategory()Method called for editing new category
-