001    /*
002     * Copyright 2006-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    
017    package edu.sampleu.demo.kitchensink;
018    
019    import java.io.Serializable;
020    import java.util.Date;
021    
022    /**
023     * DayEvent holds some information about an event
024     *
025     * @author Kuali Rice Team (rice.collab@kuali.org)
026     */
027    
028    public class DayEvent extends TimeInfo implements Serializable {
029        private String name;
030        private Date date;
031    
032        /**
033         * constructor
034         * @param name
035         * @param date
036         */
037        public DayEvent(String name, Date date, String startTime, String startTimeAmPm, boolean allDay) {
038            super(startTime, startTimeAmPm, allDay);
039            this.name = name;
040            this.date = date;
041        }
042    
043        /**
044         * default constructor
045         */
046        public DayEvent () {};
047    
048        /**
049         * get the event name
050         *
051         * @return the event name
052         */
053        public String getName() {
054            return name;
055        }
056    
057        /**
058         * set the event name
059         *
060         * @param name - the event name
061         */
062        public void setName(String name) {
063            this.name = name;
064        }
065    
066        /**
067         * get the event date
068         * @return the event date
069         */
070        public Date getDate() {
071            return date;
072        }
073    
074        /**
075         * set the event date
076         * @param date - the event date
077         */
078        public void setDate(Date date) {
079            this.date = date;
080        }
081    }