-
Notifications
You must be signed in to change notification settings - Fork 0
/
Todo.txt
79 lines (39 loc) · 2.28 KB
/
Todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Todo list for the todo list project
General:
- change todoList and todoItem classes to be TodoList and TodoItem
todoItem class:
- should not extend FileReader, todoItems are not FileReader objects
todoList class:
- method for adding and removing todoItem objects
- add method should add the object in a sorted position (sorted by Calendar field)
- public access to ArrayList storing todoItem objects
possible solutions:
- have todoList extend `ArrayList<todoItem>` and override the add method
- I (thor) tried this and ran into some issues, may have to be a joint effort
FileReader:
- fix compile-time errors
- use `Calendar.getInstance()` instead of `new Calendar()`
- raw datatypes (int, char, boolean, long, double, etc.) don't have toString methods
- calendar does not have getDate() method
- DateFormat is an abstract class, possibly use SimpleDateFormat
- Calendar.toString() doesn't print in a format parsable by SimpleDateFormat
possible solutions:
- use `boolean + ""` for string conversion
- calendar.getTime() returns a Date object, may be what you were thinking calendar.getDate() does
FileReader/todoList:
- FileReader's methods currently accepts and returns an ArrayList of todoItem objects, but todoList does not accept or return any ArrayList
possible solutions:
- change FileReader to use todoList instances as input and output
- add a constructor to todoList that accepts an ArrayList of todoItem objects
General UI:
- we still a UI element to add todoItem objects to the todoList
- menu element to save and open files that store the todoList data
CalendarView:
- highlight days with todoItem instances
- possibly also display titles of the first few items
CalendarDay
- have window display the todoItem entries for that day
- sorted by calendar field
- possibly use a TodoListView
TodoListView:
- will eventually display information about todoItem objects in a similar fashion to the way assignments are displayed on Blackboard