All Packages Class Hierarchy This Package Previous Next Index
Class ajanta.apps.calendar.CalendarEvent
java.lang.Object
|
+----ajanta.apps.calendar.CalendarEvent
- public class CalendarEvent
- extends Object
- implements Serializable
The CalendarEvent class is used to represent an appointment. It contains a
description, a list of participants involved, the start time, the duration,
a flag indicating status and a flag indicating privacy constraints.
The status flag indicates whether the appointment is FREE, BUSY, ACTIVE or TENTATIVE
The privacy constraint flag specifies restricted access to the details of
the appointment( PRIVATE, SEMIPRIVATE , PUBLIC )
-
ACTIVE
-
-
BUSY
-
-
FREE
-
-
PRIVATE
-
-
PUBLIC
-
-
SEMIPRIVATE
-
-
TENTATIVE
-
-
CalendarEvent()
-
-
CalendarEvent(String, Vector, Date, int)
-
-
getDescription()
- Return current description of the event
-
getDuration()
- Return current duration of the event
-
getEndTime()
- Return end time of the event
-
getPList()
- Return vector of URN of participants
-
getStartTime()
- Return start time of the event
-
getStatus()
- Return current status of the event
-
print()
- Print all the info about the event
-
setDescription(String)
- It sets the description of the event to "s" passed as argument
-
setDuration(int)
- It sets the duration of the event to "dur" passed as argument
-
setPrivacy(int)
- It sets the privacy constraint of the event to "p" passed as argument
-
setStartTime(Date)
- It sets the start time of the event to the Date object "d" passed as argument
-
setStatus(int)
- It sets the status of the event to "stat" passed as argument
-
toString()
-
PRIVATE
public static final int PRIVATE
SEMIPRIVATE
public static final int SEMIPRIVATE
PUBLIC
public static final int PUBLIC
FREE
public static final int FREE
BUSY
public static final int BUSY
ACTIVE
public static final int ACTIVE
TENTATIVE
public static final int TENTATIVE
CalendarEvent
public CalendarEvent()
CalendarEvent
public CalendarEvent(String desc,
Vector pList,
Date sTime,
int d)
- Parameters:
- desc - event's description
- pList - vector of participants
- sTime - start time of the event
- d - duaration of the event
setStatus
public void setStatus(int stat)
- It sets the status of the event to "stat" passed as argument
getStatus
public int getStatus()
- Return current status of the event
setDescription
public void setDescription(String s)
- It sets the description of the event to "s" passed as argument
getDescription
public String getDescription()
- Return current description of the event
setDuration
public void setDuration(int dur)
- It sets the duration of the event to "dur" passed as argument
getDuration
public int getDuration()
- Return current duration of the event
setPrivacy
public void setPrivacy(int p)
- It sets the privacy constraint of the event to "p" passed as argument
setStartTime
public void setStartTime(Date d)
- It sets the start time of the event to the Date object "d" passed as argument
getStartTime
public long getStartTime()
- Return start time of the event
getEndTime
public long getEndTime()
- Return end time of the event
getPList
public Vector getPList()
- Return vector of URN of participants
print
public void print()
- Print all the info about the event
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index