View Javadoc

1   /**
2    * Copyright 2004-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }