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