Package com.vaadin.addon.calendar.gwt.client.ui.schedule

Examples of com.vaadin.addon.calendar.gwt.client.ui.schedule.CalendarEvent


                        } else if (widget instanceof DayEvent) {
                            /*
                             * Context menu on event
                             */
                            DayEvent dayEvent = (DayEvent) widget;
                            CalendarEvent event = dayEvent.getCalendarEvent();
                            Action[] actions = VCalendarPaintable.this.getActionsBetween(
                                    event.getStartTime(), event.getEndTime());
                            for (Action action : actions) {
                                ((VCalendarAction) action).setEvent(event);
                            }
                            return actions;

View Full Code Here


            String timeto = eventUIDL.getStringAttribute(ATTR_TIMETO);
            String desc = eventUIDL.getStringAttribute(ATTR_DESCRIPTION);
            String style = eventUIDL.getStringAttribute(ATTR_STYLE);
            boolean allDay = eventUIDL.getBooleanAttribute(ATTR_ALLDAY);

            CalendarEvent e = new CalendarEvent();

            e.setCaption(caption);
            e.setDescription(desc);
            e.setIndex(index);
            e.setEnd(dateformat_date.parse(dateto));
            e.setStart(dateformat_date.parse(datefrom));
            e.setStartTime(dateformat_datetime.parse(datefrom + " " + timefrom));
            e.setEndTime(dateformat_datetime.parse(dateto + " " + timeto));
            e.setStyleName(style);
            e.setFormat24h(is24HFormat());
            e.setAllDay(allDay);

            events.add(e);

            registerEventToolTip(e);
        }
View Full Code Here

    }

    private boolean isSlotEmpty(CalendarEvent addedEvent, int slotIndex,
            List<SimpleDayCell> cells) {
        for (SimpleDayCell sdc : cells) {
            CalendarEvent e = sdc.getCalendarEvent(slotIndex);
            if (e != null && !e.equals(addedEvent)) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

TOP

Related Classes of com.vaadin.addon.calendar.gwt.client.ui.schedule.CalendarEvent

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.