All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ajanta.apps.calendar.DayEvents

java.lang.Object
   |
   +----java.util.Vector
           |
           +----ajanta.apps.calendar.DayEvents

public class DayEvents
extends Vector
It stores all the CalendarEvent scheduled for a date


Constructor Index

 o DayEvents()

Method Index

 o checkConflict(CalendarEvent)
method checks if a given event clashes with an existing appointmentof the DayEvents
 o getCalEvent(Date)
 o insert(CalendarEvent)
Insert a calendar event
 o print()
Print CalendarEvents for this DayEvents in sorted order
 o remove(CalendarEvent)
Delete a calendar event
 o sort()
sort all the CalendarEvents in the DayEvents based on start time

Constructors

 o DayEvents
 public DayEvents()

Methods

 o insert
 public void insert(CalendarEvent e)
Insert a calendar event

 o remove
 public void remove(CalendarEvent e)
Delete a calendar event

 o checkConflict
 public boolean checkConflict(CalendarEvent e)
method checks if a given event clashes with an existing appointmentof the DayEvents

Returns:
true if it clashes flase otherwise
 o getCalEvent
 public CalendarEvent getCalEvent(Date d)
Returns:
a CalendarEvent starting at time d if one exists else null
 o sort
 protected void sort()
sort all the CalendarEvents in the DayEvents based on start time

 o print
 public void print()
Print CalendarEvents for this DayEvents in sorted order


All Packages  Class Hierarchy  This Package  Previous  Next  Index