001    /**
002     * Copyright 2004-2012 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.hr.time.calendar;
017    
018    import org.kuali.hr.time.timeblock.TimeBlock;
019    
020    import java.util.ArrayList;
021    import java.util.List;
022    
023    public class TkCalendarDay extends CalendarDay{
024            private List<TimeBlock> timeblocks = new ArrayList<TimeBlock>();
025        private List<TimeBlockRenderer> blockRenderers = new ArrayList<TimeBlockRenderer>();
026        private String dayNumberString;
027        private Boolean gray;
028    
029            public List<TimeBlock> getTimeblocks() {
030                    return timeblocks;
031            }
032    
033            public void setTimeblocks(List<TimeBlock> timeblocks) {
034                    this.timeblocks = timeblocks;
035            for (TimeBlock tb : timeblocks) {
036                blockRenderers.add(new TimeBlockRenderer(tb));
037            }
038            }
039    
040        public List<TimeBlockRenderer> getBlockRenderers() {
041            return blockRenderers;
042        }
043    
044        public String getDayNumberString() {
045            return dayNumberString;
046        }
047    
048        public void setDayNumberString(String dayNumberString) {
049            this.dayNumberString = dayNumberString;
050        }
051    
052            public Boolean getGray() {
053                    return gray;
054            }
055    
056            public void setGray(Boolean gray) {
057                    this.gray = gray;
058            }
059    
060    }