View Javadoc

1   /**
2    * Copyright 2005-2012 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 edu.sampleu.demo.kitchensink;
17  
18  import java.io.Serializable;
19  import java.util.Date;
20  
21  /**
22   * DayEvent holds some information about an event
23   *
24   * @author Kuali Rice Team (rice.collab@kuali.org)
25   */
26  
27  public class DayEvent extends TimeInfo implements Serializable {
28      private String name;
29      private Date date;
30  
31      /**
32       * constructor
33       * @param name
34       * @param date
35       */
36      public DayEvent(String name, Date date, String startTime, String startTimeAmPm, boolean allDay) {
37          super(startTime, startTimeAmPm, allDay);
38          this.name = name;
39          this.date = date;
40      }
41  
42      /**
43       * default constructor
44       */
45      public DayEvent () {};
46  
47      /**
48       * get the event name
49       *
50       * @return the event name
51       */
52      public String getName() {
53          return name;
54      }
55  
56      /**
57       * set the event name
58       *
59       * @param name - the event name
60       */
61      public void setName(String name) {
62          this.name = name;
63      }
64  
65      /**
66       * get the event date
67       * @return the event date
68       */
69      public Date getDate() {
70          return date;
71      }
72  
73      /**
74       * set the event date
75       * @param date - the event date
76       */
77      public void setDate(Date date) {
78          this.date = date;
79      }
80  }