1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.calendar;
17
18 import org.kuali.hr.lm.leaveblock.LeaveBlock;
19 import org.kuali.hr.time.timeblock.TimeBlock;
20
21 import java.util.ArrayList;
22 import java.util.List;
23
24 public class TkCalendarDay extends CalendarDay{
25 private List<TimeBlock> timeblocks = new ArrayList<TimeBlock>();
26 private List<TimeBlockRenderer> blockRenderers = new ArrayList<TimeBlockRenderer>();
27 private String dayNumberString;
28 private Boolean gray;
29 private List<LeaveBlock> leaveBlocks = new ArrayList<LeaveBlock>();
30 private List<LeaveBlockRenderer> leaveBlockRenderers = new ArrayList<LeaveBlockRenderer>();
31
32 public List<TimeBlock> getTimeblocks() {
33 return timeblocks;
34 }
35
36 public void setTimeblocks(List<TimeBlock> timeblocks) {
37 this.timeblocks = timeblocks;
38 for (TimeBlock tb : timeblocks) {
39 blockRenderers.add(new TimeBlockRenderer(tb));
40 }
41 }
42
43 public List<TimeBlockRenderer> getBlockRenderers() {
44 return blockRenderers;
45 }
46
47 public String getDayNumberString() {
48 return dayNumberString;
49 }
50
51 public void setDayNumberString(String dayNumberString) {
52 this.dayNumberString = dayNumberString;
53 }
54
55 public Boolean getGray() {
56 return gray;
57 }
58
59 public void setGray(Boolean gray) {
60 this.gray = gray;
61 }
62
63 public List<LeaveBlock> getLeaveBlocks() {
64 return leaveBlocks;
65 }
66
67 public void setLeaveBlocks(List<LeaveBlock> leaveBlocks) {
68 this.leaveBlocks = leaveBlocks;
69 for (LeaveBlock lb : leaveBlocks) {
70 leaveBlockRenderers.add(new LeaveBlockRenderer(lb));
71 }
72 }
73
74 public List<LeaveBlockRenderer> getLeaveBlockRenderers() {
75 return leaveBlockRenderers;
76 }
77
78 public void setLeaveBlockRenderers(List<LeaveBlockRenderer> leaveBlockRenderers) {
79 this.leaveBlockRenderers = leaveBlockRenderers;
80 }
81
82 }