-
Notifications
You must be signed in to change notification settings - Fork 0
/
todoItem.java
63 lines (52 loc) · 1 KB
/
todoItem.java
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
import java.util.Calendar;
import java.util.Date;
public class TodoItem// extends FileReader
{
private Calendar timeAndDate;
private String title;
private String description;
private boolean completed;
public TodoItem()
{
this("", "", false, null);
}
public TodoItem(String title, String description, boolean completed, Calendar calendar)
{
this.timeAndDate = calendar;
this.title = title;
this.description = description;
this.completed = completed;
}
public void setCalendar(Calendar t)
{
this.timeAndDate = t;
}
public Calendar getCalendar()
{
return this.timeAndDate;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return this.title;
}
public void setDescription(String description)
{
this.description = description;
}
public String getDescription()
{
return this.description;
}
public void setCompleted(boolean completed)
{
this.completed = completed;
}
public boolean getCompleted()
{
return this.completed;
}
}