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 )


Variable Index

 o ACTIVE
 o BUSY
 o FREE
 o PRIVATE
 o PUBLIC
 o SEMIPRIVATE
 o TENTATIVE

Constructor Index

 o CalendarEvent()
 o CalendarEvent(String, Vector, Date, int)

Method Index

 o getDescription()
Return current description of the event
 o getDuration()
Return current duration of the event
 o getEndTime()
Return end time of the event
 o getPList()
Return vector of URN of participants
 o getStartTime()
Return start time of the event
 o getStatus()
Return current status of the event
 o print()
Print all the info about the event
 o setDescription(String)
It sets the description of the event to "s" passed as argument
 o setDuration(int)
It sets the duration of the event to "dur" passed as argument
 o setPrivacy(int)
It sets the privacy constraint of the event to "p" passed as argument
 o setStartTime(Date)
It sets the start time of the event to the Date object "d" passed as argument
 o setStatus(int)
It sets the status of the event to "stat" passed as argument
 o toString()

Variables

 o PRIVATE
 public static final int PRIVATE
 o SEMIPRIVATE
 public static final int SEMIPRIVATE
 o PUBLIC
 public static final int PUBLIC
 o FREE
 public static final int FREE
 o BUSY
 public static final int BUSY
 o ACTIVE
 public static final int ACTIVE
 o TENTATIVE
 public static final int TENTATIVE

Constructors

 o CalendarEvent
 public CalendarEvent()
 o 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

Methods

 o setStatus
 public void setStatus(int stat)
It sets the status of the event to "stat" passed as argument

 o getStatus
 public int getStatus()
Return current status of the event

 o setDescription
 public void setDescription(String s)
It sets the description of the event to "s" passed as argument

 o getDescription
 public String getDescription()
Return current description of the event

 o setDuration
 public void setDuration(int dur)
It sets the duration of the event to "dur" passed as argument

 o getDuration
 public int getDuration()
Return current duration of the event

 o setPrivacy
 public void setPrivacy(int p)
It sets the privacy constraint of the event to "p" passed as argument

 o setStartTime
 public void setStartTime(Date d)
It sets the start time of the event to the Date object "d" passed as argument

 o getStartTime
 public long getStartTime()
Return start time of the event

 o getEndTime
 public long getEndTime()
Return end time of the event

 o getPList
 public Vector getPList()
Return vector of URN of participants

 o print
 public void print()
Print all the info about the event

 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index