KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lucane > applications > calendar > widget > BasicEvent


1 /*
2  * Lucane - a collaborative platform
3  * Copyright (C) 2003 Vincent Fiack <vfiack@mail15.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19  
20 package org.lucane.applications.calendar.widget;
21
22 import java.awt.Color JavaDoc;
23 import java.util.Date JavaDoc;
24
25 import javax.swing.Icon JavaDoc;
26
27 /**
28  * A basic event
29  */

30 public interface BasicEvent
31 {
32     /**
33      * Get the event title
34      *
35      * @return the event title
36      */

37     public String JavaDoc getTitle();
38
39     /**
40      * Get the event description
41      *
42      * @return the event description
43      */

44     public String JavaDoc getDescription();
45     
46     /**
47      * Get the event start time
48      *
49      * @return the event start time
50      */

51     public Date JavaDoc getStartDate();
52     
53     
54     /**
55      * Get the event start time
56      *
57      * @return the event start time
58      */

59     public Date JavaDoc getEndDate();
60
61     
62     /**
63      * Get the event start hour
64      *
65      * @return the event start hour
66      */

67     public int getStartHour();
68     
69     /**
70      * Get the event start minute
71      *
72      * @return the event start minute
73      */

74     public int getStartMinute();
75     
76     /**
77      * Get the event end hour
78      *
79      * @return the end hour
80      */

81     public int getEndHour();
82
83     /**
84      * Get the event end minute
85      *
86      * @return the end minute
87      */

88     public int getEndMinute();
89     
90     
91     /**
92      * Is this event during more than one day
93      * @return true if it should span on more than one day
94      */

95     public boolean isMultiDay();
96     
97     /**
98      * Get the color associated with this event
99      *
100      * @return the color
101      */

102      public Color JavaDoc getColor();
103      
104      /**
105       * Get the icon associated with this event
106       * @return the icon
107       */

108      public Icon JavaDoc getIcon();
109 }
Popular Tags