net.fortuna.ical4j.model.Dur Usage, Examples, Demos and Tutorials

…Code Examples of net.fortuna.ical4j.model.

// private methods ——————————————————–

private static VEvent createEvent(String uid, String start, String duration, String summary) throws ParseException

{

VEvent e = new VEvent(new DateTime(start), new Dur(duration), summary);

ICalendarUtils.addOrReplaceProperty(e, new Uid(uid));

return

e;

}

private CalendarCalDAVReportMethod createFreeBusyQueryMethod(String relativePath, String rangeStart,

System.out.println(“create a dummy event..”);

// create date for event

Date beginDate = ICalendarUtils.createDateTime(2007, 8, 9, newDay,0, null, true);

Date endDate = ICalendarUtils.createDateTime(2007, 8, 7, null, true);

Dur duration = new Dur(“3H”);

// test for getByTimestamp

Date startDTSTART = ICalendarUtils.createDateTime(2007, 5, 7, null, true);

Date endDTSTART = ICalendarUtils.createDateTime(2007, 11, 10, null, true);

event.getProperties().add(Clazz.PUBLIC);

event.getProperties().add(Transp.TRANSPARENT);

event.getProperties().add(

new XProperty(“X-GOOGLE-CALENDAR-CONTENT-TITLE”, name));

if (reminder) {

VAlarm alarm = new VAlarm(new Dur(0, 0, 0, 0));

alarm.getProperties().add(Action.DISPLAY);

event.getAlarms().add(alarm);

}

return event;

}

Related Class of net.fortuna.ical4j.model.Dur

Copyright © 2011 www.androidadb.com. All rights reserved. All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc. Contact . See also:

|

|

|

Leave a Reply

Your email address will not be published. Required fields are marked *