View Javadoc

1   /*
2    * Copyright 2006 Robert Hanson <iamroberthanson AT gmail.com>
3    * 
4    * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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  
17  package org.gwtwidgets.client.ui.cal;
18  
19  import java.util.Date;
20  
21  /***
22   * Bean class to hold information about an event.
23   * 
24   * @author rhanson
25   */
26  public class CalendarEvent
27  {
28      private String title = "";
29      private Date start;
30      private Date end;
31      private boolean timeSignificant;
32  
33  
34  
35      CalendarEvent (Date date, boolean timeSignificant)
36      {
37          this.start = date;
38          this.end = date;
39          this.timeSignificant = timeSignificant;
40      }
41  
42      CalendarEvent (Date start, Date end, boolean timeSignificant)
43      {
44          this.start = start;
45          this.end = end;
46          this.timeSignificant = timeSignificant;
47      }
48  
49      public Date getEnd ()
50      {
51          return end;
52      }
53  
54      public Date getStart ()
55      {
56          return start;
57      }
58  
59      public boolean isTimeSignificant ()
60      {
61          return timeSignificant;
62      }
63  
64      public String getTitle ()
65      {
66          return title;
67      }
68  
69      public void setTitle (String title)
70      {
71          this.title = title;
72      }
73  }