Package org.blync.client.calendar

Examples of org.blync.client.calendar.Day.toInt()


        for (int i = 0; i < 366; i++) {
            Day occurrence = startDay.add(i);
            if (occurrence.compare(endDay) > 0) {
                break;
            }
            days.addElement(new Integer(occurrence.toInt()));
        }
        if (appointment.getRecurrence() != null) {
            RecurrencePattern recurrence = appointment.getRecurrence();
            int type = recurrence.getType();
            Day repeatUntil = recurrence.getRepeatUntil();
View Full Code Here


                    Day occurrence = startDay.add(i);
                    if (repeatUntil != null && occurrence.compare(repeatUntil) > 0) {
                        break;
                    }
                    if (!recurrence.isException(occurrence)) {
                        recurrenceDays.addElement(new Integer(occurrence.toInt()));
                        days.addElement(new Integer(occurrence.toInt()));
                    }
                }
            }
            else if (type == RecurrencePattern.REC_WEEKLY) {
View Full Code Here

                    if (repeatUntil != null && occurrence.compare(repeatUntil) > 0) {
                        break;
                    }
                    if (!recurrence.isException(occurrence)) {
                        recurrenceDays.addElement(new Integer(occurrence.toInt()));
                        days.addElement(new Integer(occurrence.toInt()));
                    }
                }
            }
            else if (type == RecurrencePattern.REC_WEEKLY) {
                for (int i = 1; i <= 105; i++) {
View Full Code Here

                    Day occurrence = startDay.add(i*7);
                    if (repeatUntil != null && occurrence.compare(repeatUntil) > 0) {
                        break;
                    }
                    if (!recurrence.isException(occurrence)) {
                        recurrenceDays.addElement(new Integer(occurrence.toInt()));
                        days.addElement(new Integer(occurrence.toInt()));
                    }
                }
            }
            else if (type == RecurrencePattern.REC_MONTHLY) {
View Full Code Here

                    if (repeatUntil != null && occurrence.compare(repeatUntil) > 0) {
                        break;
                    }
                    if (!recurrence.isException(occurrence)) {
                        recurrenceDays.addElement(new Integer(occurrence.toInt()));
                        days.addElement(new Integer(occurrence.toInt()));
                    }
                }
            }
            else if (type == RecurrencePattern.REC_MONTHLY) {
                CalendarDate startDate = startDay.getCalendarDate();
View Full Code Here

                    Day occurrence = startDate.addMonths(i);
                    if (repeatUntil != null && occurrence.compare(repeatUntil) > 0) {
                        break;
                    }
                    if (!recurrence.isException(occurrence)) {
                        recurrenceDays.addElement(new Integer(occurrence.toInt()));
                        days.addElement(new Integer(occurrence.toInt()));
                    }
                }
            }
            else if (type == RecurrencePattern.REC_YEARLY) {
View Full Code Here

                    if (repeatUntil != null && occurrence.compare(repeatUntil) > 0) {
                        break;
                    }
                    if (!recurrence.isException(occurrence)) {
                        recurrenceDays.addElement(new Integer(occurrence.toInt()));
                        days.addElement(new Integer(occurrence.toInt()));
                    }
                }
            }
            else if (type == RecurrencePattern.REC_YEARLY) {
                CalendarDate startDate = startDay.getCalendarDate();
View Full Code Here

                    Day occurrence = startDate.addYears(i);
                    if (repeatUntil != null && occurrence.compare(repeatUntil) > 0) {
                        break;
                    }
                    if (!recurrence.isException(occurrence)) {
                        recurrenceDays.addElement(new Integer(occurrence.toInt()));
                        days.addElement(new Integer(occurrence.toInt()));
                    }
                }
            }
        }
View Full Code Here

                    if (repeatUntil != null && occurrence.compare(repeatUntil) > 0) {
                        break;
                    }
                    if (!recurrence.isException(occurrence)) {
                        recurrenceDays.addElement(new Integer(occurrence.toInt()));
                        days.addElement(new Integer(occurrence.toInt()));
                    }
                }
            }
        }
        idToDaysMap.setValues(id, days);
View Full Code Here

        for (int i = 0; i < 366; i++) {
            Day occurrence = startDay.add(i);
            if (occurrence.compare(endDay) > 0) {
                break;
            }
            days.addElement(new Integer(occurrence.toInt()));
        }

        idToDaysMap.setValues(id, days);
        idToTitleMap.put(id, appointment.getTitle());
        idToLastModifiedMap.put(id, DateFormatter.dateToICal(new Date()));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.