Class DbToCal

java.lang.Object
  extended by DbToCal

public class DbToCal
extends java.lang.Object

Adds an events/todos to a Calendar. Then writing a text representation of a Calendar object to a file.


Constructor Summary
DbToCal(java.lang.String file, com.sri.oaa2.icl.IclList list, net.fortuna.ical4j.model.Calendar cal)
          The time format, where 15 == 3pm, should be: yyyymmddThh
or yyyymmddThhmm
or yyyymmddThhmmss
For example: 20040825T1404
NOT : 2004-08-25:14-4
NOT : 20040825
 
Method Summary
 void add(java.lang.String choice, java.lang.String startTime, java.lang.String stopTime, java.lang.String summary)
          Method that adds a new entry to the Calendar.
 void makeCalendar()
          When the calendar is complete, this method is called to save it to a file.
 void setCalendar(com.sri.oaa2.icl.IclList list)
          Takes an IclList as argument, adding events and todos to the Calendar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbToCal

public DbToCal(java.lang.String file,
               com.sri.oaa2.icl.IclList list,
               net.fortuna.ical4j.model.Calendar cal)
The time format, where 15 == 3pm, should be: yyyymmddThh
or yyyymmddThhmm
or yyyymmddThhmmss
For example: 20040825T1404
NOT : 2004-08-25:14-4
NOT : 20040825

Parameters:
file - the file name to save the calendar to (*.ics)
list - IclList with all the entries in the database
cal - the Calendar to add information to
Method Detail

setCalendar

public void setCalendar(com.sri.oaa2.icl.IclList list)
                 throws java.lang.Exception
Takes an IclList as argument, adding events and todos to the Calendar.

Parameters:
list - the IclList with database entries
Throws:
java.lang.Exception

makeCalendar

public void makeCalendar()
When the calendar is complete, this method is called to save it to a file.


add

public void add(java.lang.String choice,
                java.lang.String startTime,
                java.lang.String stopTime,
                java.lang.String summary)
Method that adds a new entry to the Calendar. It takes four strings as argument.

Parameters:
choice - whether it is an event, todo or alarm
startTime - the time the entry should begin
stopTime - the time the entry should end
summary - the text associated with the entry