01: package org.claros.intouch.calendar.models;
02:
03: import java.sql.Timestamp;
04: import java.util.ArrayList;
05:
06: /**
07: * @author Umut Gokbayrak
08: */
09: public class CalendarDailyItems {
10: private Timestamp date;
11: private ArrayList hours;
12: private ArrayList appointments;
13:
14: public CalendarDailyItems() {
15: hours = new ArrayList();
16: appointments = new ArrayList();
17: }
18:
19: public void addHour(CalendarHourItems hour) {
20: hours.add(hour);
21: }
22:
23: public void addAppointment(CalendarObjectWrap app) {
24: appointments.add(app);
25: }
26:
27: /**
28: * @return
29: */
30: public Timestamp getDate() {
31: return date;
32: }
33:
34: /**
35: * @param timestamp
36: */
37: public void setDate(Timestamp timestamp) {
38: date = timestamp;
39: }
40:
41: /**
42: * @return
43: */
44: public ArrayList getHours() {
45: return hours;
46: }
47:
48: /**
49: * @param list
50: */
51: public void setHours(ArrayList list) {
52: hours = list;
53: }
54:
55: /**
56: * @return
57: */
58: public ArrayList getAppointments() {
59: return appointments;
60: }
61:
62: /**
63: * @param list
64: */
65: public void setAppointments(ArrayList list) {
66: appointments = list;
67: }
68:
69: }
|