Package net.fortuna.ical4j.model.property

Examples of net.fortuna.ical4j.model.property.ProdId


  }
 
  private Calendar buildCalendar(Kalendar kalendar) {
    Calendar calendar = new Calendar();
    // add standard propeties
    calendar.getProperties().add(new ProdId("-//Ben Fortuna//iCal4j 1.0//EN"));
    calendar.getProperties().add(Version.VERSION_2_0);
    calendar.getProperties().add(CalScale.GREGORIAN);
    for (Iterator<KalendarEvent> iter = kalendar.getEvents().iterator(); iter.hasNext();) {
      KalendarEvent kEvent = iter.next();
      VEvent vEvent = getVEvent(kEvent);
View Full Code Here


    icsCalendar = new net.fortuna.ical4j.model.Calendar();
   
    //timeRegistry = TimeZoneRegistryFactory.getInstance().createRegistry();
    //timeZone = timeRegistry.getTimeZone(java.util.TimeZone.getDefault().getID());
 
    icsCalendar.getProperties().add(new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
    icsCalendar.getProperties().add(CalScale.GREGORIAN);
    icsCalendar.getProperties().add(Version.VERSION_2_0);
   
    // Switch Method Type
    if(methodType.equals(ICAL_METHOD_REFRESH))
View Full Code Here

    }

    public static Calendar createCalendarSkeleton() {
        Calendar calendar = new Calendar();

        calendar.getProperties().add(new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
        calendar.getProperties().add(Version.VERSION_2_0);
        calendar.getProperties().add(CalScale.GREGORIAN);
        calendar.getComponents().add(JST_TIMEZONE.getVTimeZone());

        return calendar;
View Full Code Here

    public SemesterCalendar(SemesterTimetable st) {
        super();
        PropertyList pl = getProperties();
        ComponentList cl = getComponents();
        pl.add(new ProdId("-//Nia Mutiara//NTU Timetable to iCalendar//EN"));
        pl.add(Version.VERSION_2_0);
        pl.add(CalScale.GREGORIAN);
        Iterator<ClassTimetable> it = st.getClassTimetables().iterator();
        ClassTimetable ct;
        while (it.hasNext()) {
View Full Code Here

     * @throws IOException the OutoutStream cannot be written
     */
    public void toIcal(List<EventVO> events, OutputStream out) throws ValidationException, ParseException, IOException
    {
        Calendar icalendar = new Calendar();
        icalendar.getProperties().add(new ProdId("-//OpenCustomer 0.3.0//iCal4j 1.0//DE"));
        icalendar.getProperties().add(Version.VERSION_2_0);
        icalendar.getProperties().add(CalScale.GREGORIAN);
        icalendar.getProperties().add(Method.PUBLISH);
        List<VEvent> vevents = new ArrayList<VEvent>();
        int i = 0;
View Full Code Here

        meeting.getProperties().add(dev2);

        // Create a calendar
        net.fortuna.ical4j.model.Calendar icsCalendar = new net.fortuna.ical4j.model.Calendar();
        icsCalendar.getProperties().add(Version.VERSION_2_0);
        icsCalendar.getProperties().add(new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
        icsCalendar.getProperties().add(CalScale.GREGORIAN);

        // Add the event and print
        icsCalendar.getComponents().add(meeting);
        return icsCalendar;
View Full Code Here

    meeting.getProperties().add(dev2);

    // Create a calendar
    net.fortuna.ical4j.model.Calendar icsCalendar = new net.fortuna.ical4j.model.Calendar();
    icsCalendar.getProperties().add(
        new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
    icsCalendar.getProperties().add(CalScale.GREGORIAN);
    icsCalendar.getProperties().add(Version.VERSION_2_0);

    // Add the event and print
    icsCalendar.getComponents().add(meeting);
View Full Code Here

    log.debug("Icalhandler method type : " + method);
   
    icsCalendar = new net.fortuna.ical4j.model.Calendar();

    icsCalendar.getProperties().add(
        new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
    icsCalendar.getProperties().add(Version.VERSION_2_0);
    icsCalendar.getProperties().add(CalScale.GREGORIAN);
   
    icsCalendar.getProperties().add(method);
  }
View Full Code Here

    meeting.getProperties().add(dev2);

    // Create a calendar
    net.fortuna.ical4j.model.Calendar icsCalendar = new net.fortuna.ical4j.model.Calendar();
    icsCalendar.getProperties().add(
        new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
    icsCalendar.getProperties().add(CalScale.GREGORIAN);
    icsCalendar.getProperties().add(Version.VERSION_2_0);

    // Add the event and print
    icsCalendar.getComponents().add(meeting);
View Full Code Here

    System.setProperty("net.fortuna.ical4j.timezone.update.enabled", "false");
   
    icsCalendar = new net.fortuna.ical4j.model.Calendar();

    icsCalendar.getProperties().add(
        new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
    icsCalendar.getProperties().add(Version.VERSION_2_0);
    icsCalendar.getProperties().add(CalScale.GREGORIAN);
   
    icsCalendar.getProperties().add(method);
  }
View Full Code Here

TOP

Related Classes of net.fortuna.ical4j.model.property.ProdId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.