Skip to content

Project Structure

Eivind Strand Harboe edited this page Apr 29, 2021 · 1 revision

Documents

Name File Document id
Project structure.pdf Project_structure.pdf 14.0

The libraries we use are javafx, junit and the java api. We use the javafx library to create the gui for the program. Especially javafx.fxml was used along with the Scenebuilder application. The junit library was used to run unit tests for the backend classes and methods. Lastly the java api was used to code the program. We used ArrayList and HashMap to store data and streams to use lambda expressions. To write locally stored files and read them we used java.io. Apart from the java api these are the libraries we used(see picture below).

We have divided backend classes and the frontend classes into two different packages, application and backend. Further the application package contains three packages: exceptions, fileHandling and task. The task package is where the tasks are managed. The gui package is divided into controllers and views.

F:.
β”‚   .gitignore
β”‚   .gitlab-ci.yml
β”‚   pom.xml
β”‚   Readme.md
β”‚   ToDoList.iml
β”‚
β”œβ”€β”€β”€data
β”‚       .gitkeep
β”‚       mainRegister.ser
β”‚       Readme.md
β”‚
└───src
    β”œβ”€β”€β”€main
    β”‚   β”œβ”€β”€β”€java
    β”‚   β”‚   └───ntnu
    β”‚   β”‚       └───team1
    β”‚   β”‚           β”‚   Launcher.java
    β”‚   β”‚           β”‚   package-info.java
    β”‚   β”‚           β”‚
    β”‚   β”‚           β”œβ”€β”€β”€application
    β”‚   β”‚           β”‚   β”‚   package-info.java
    β”‚   β”‚           β”‚   β”‚
    β”‚   β”‚           β”‚   β”œβ”€β”€β”€category
    β”‚   β”‚           β”‚   β”‚       CategoryDialog.java
    β”‚   β”‚           β”‚   β”‚       CategoryListController.java
    β”‚   β”‚           β”‚   β”‚       package-info.java
    β”‚   β”‚           β”‚   β”‚
    β”‚   β”‚           β”‚   β”œβ”€β”€β”€helpers
    β”‚   β”‚           β”‚   β”‚       package-info.java
    β”‚   β”‚           β”‚   β”‚       RegisterModifiers.java
    β”‚   β”‚           β”‚   β”‚       StaticMethods.java
    β”‚   β”‚           β”‚   β”‚
    β”‚   β”‚           β”‚   β”œβ”€β”€β”€main
    β”‚   β”‚           β”‚   β”‚       App.java
    β”‚   β”‚           β”‚   β”‚       MainApplicationController.java
    β”‚   β”‚           β”‚   β”‚       package-info.java
    β”‚   β”‚           β”‚   β”‚
    β”‚   β”‚           β”‚   └───task
    β”‚   β”‚           β”‚           package-info.java
    β”‚   β”‚           β”‚           ShowByCategoryController.java
    β”‚   β”‚           β”‚           TaskDialog.java
    β”‚   β”‚           β”‚           TaskListController.java
    β”‚   β”‚           β”‚
    β”‚   β”‚           └───backend
    β”‚   β”‚               β”‚   MainRegister.java
    β”‚   β”‚               β”‚   package-info.java
    β”‚   β”‚               β”‚
    β”‚   β”‚               β”œβ”€β”€β”€exceptions
    β”‚   β”‚               β”‚       package-info.java
    β”‚   β”‚               β”‚       RemoveException.java
    β”‚   β”‚               β”‚
    β”‚   β”‚               β”œβ”€β”€β”€objects
    β”‚   β”‚               β”‚       Category.java
    β”‚   β”‚               β”‚       package-info.java
    β”‚   β”‚               β”‚       Task.java
    β”‚   β”‚               β”‚
    β”‚   β”‚               └───persistence
    β”‚   β”‚                       package-info.java
    β”‚   β”‚                       Read.java
    β”‚   β”‚                       Write.java
    β”‚   β”‚
    β”‚   └───resources
    β”‚       β”œβ”€β”€β”€Images
    β”‚       β”‚       addNew.png
    β”‚       β”‚       deleteAll.png
    β”‚       β”‚       edit.png
    β”‚       β”‚       Logo256pxv2.png
    β”‚       β”‚       Logo_Full_res.png
    β”‚       β”‚
    β”‚       └───ntnu
    β”‚           └───team1
    β”‚               └───application
    β”‚                   └───main
    β”‚                       β”‚   MainApplication.fxml
    β”‚                       β”‚
    β”‚                       β”œβ”€β”€β”€category
    β”‚                       β”‚       categoryList.fxml
    β”‚                       β”‚
    β”‚                       β”œβ”€β”€β”€stylesheets
    β”‚                       β”‚       dialog.css
    β”‚                       β”‚       list.css
    β”‚                       β”‚       MainApplication.css
    β”‚                       β”‚
    β”‚                       └───task
    β”‚                               showByCategory.fxml
    β”‚                               taskList.fxml
    β”‚
    └───test
        └───java
            └───ntnu
                └───team1
                    └───backend
                            MainRegisterTest.java
                            ReadWrite.java

Clone this wiki locally