Examples of CalendarEvent

  • com.vaadin.addon.calendar.gwt.client.ui.schedule.CalendarEvent
    A client side implementation of a calendar event @version 1.2.1
  • com.vaadin.client.ui.calendar.schedule.CalendarEvent
    A client side implementation of a calendar event @since 7.1 @author Vaadin Ltd.
  • com.vaadin.ui.components.calendar.event.CalendarEvent

    Event in the calendar. Customize your own event by implementing this interface.

  • Start and end fields are mandatory.
  • In "allDay" events longer than one day, starting and ending clock times are omitted in UI and only dates are shown.
  • @since 7.1.0 @author Vaadin Ltd.
  • org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.validdeclarations.model.CalendarEvent
    @author Gunnar Morling
  • org.martinlaw.bo.CalendarEvent
    holds information that links a date with an online calendar event entry e.g. on google calendar

    The password, username and calendar url will be configured using system admin accessible property files and wired into the service beans which will be activated by Quartz or spring integration

    @author mugo
  • org.zkoss.calendar.api.CalendarEvent
    This interface defines the methods used for {@link Calendars} to render theevent data. @author jumperchen,jimmy

  • Examples of com.vaadin.addon.calendar.event.CalendarEvent

         * com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventMoveHandler
         * #eventMove
         * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.MoveEvent)
         */
        public void eventMove(MoveEvent event) {
            CalendarEvent ce = event.getCalendarEvent();
            if (eventCache.contains(ce)) {
                int index;
                if (ce instanceof ContainerCalendarEvent) {
                    index = ((ContainerCalendarEvent) ce).getContainerIndex();
                } else {
                    index = container.indexOfId(ce);
                }

                long eventLength = ce.getEnd().getTime() - ce.getStart().getTime();
                Date newEnd = new Date(event.getNewStart().getTime() + eventLength);

                ignoreContainerEvents();
                Item item = container.getItem(container.getIdByIndex(index));
                item.getItemProperty(startDateProperty).setValue(
    View Full Code Here

    Examples of com.vaadin.addon.calendar.event.CalendarEvent

         * com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventResizeHandler
         * #eventResize
         * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventResize)
         */
        public void eventResize(EventResize event) {
            CalendarEvent ce = event.getCalendarEvent();
            if (eventCache.contains(ce)) {
                int index;
                if (ce instanceof ContainerCalendarEvent) {
                    index = ((ContainerCalendarEvent) ce).getContainerIndex();
                } else {
    View Full Code Here

    Examples of com.vaadin.addon.calendar.event.CalendarEvent

         * com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventMoveHandler
         * #eventMove
         * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.MoveEvent)
         */
        public void eventMove(MoveEvent event) {
            CalendarEvent calendarEvent = event.getCalendarEvent();

            if (calendarEvent instanceof CalendarEventEditor) {

                CalendarEventEditor editableEvent = (CalendarEventEditor) calendarEvent;

    View Full Code Here

    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

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

                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

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

        }

        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

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

        }

        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

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

                                return CalendarConnector.this.getActionsBetween(
                                        start, end);

                            } else if (widget instanceof MonthEventLabel) {
                                MonthEventLabel mel = (MonthEventLabel) widget;
                                CalendarEvent event = mel.getCalendarEvent();
                                Action[] actions = CalendarConnector.this
                                        .getActionsBetween(event.getStartTime(),
                                                event.getEndTime());
                                for (Action action : actions) {
                                    ((VCalendarAction) action).setEvent(event);
                                }
                                return actions;

                            } else if (widget instanceof DateCell) {
                                /*
                                 * Week and Day view
                                 */
                                DateCell cell = (DateCell) widget;
                                int slotIndex = DOM.getChildIndex(
                                        cell.getElement(), (Element) ne
                                                .getEventTarget().cast());
                                DateCellSlot slot = cell.getSlot(slotIndex);
                                return CalendarConnector.this.getActionsBetween(
                                        slot.getFrom(), slot.getTo());
                            } else if (widget instanceof DateCellDayEvent) {
                                /*
                                 * Context menu on event
                                 */
                                DateCellDayEvent dayEvent = (DateCellDayEvent) widget;
                                CalendarEvent event = dayEvent.getCalendarEvent();

                                Action[] actions = CalendarConnector.this
                                        .getActionsBetween(event.getStartTime(),
                                                event.getEndTime());

                                for (Action action : actions) {
                                    ((VCalendarAction) action).setEvent(event);
                                }

    View Full Code Here

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

            for (CalendarState.Event event : events) {
                final String dateFrom = event.dateFrom;
                final String dateTo = event.dateTo;
                final String timeFrom = event.timeFrom;
                final String timeTo = event.timeTo;
                CalendarEvent calendarEvent = new CalendarEvent();
                calendarEvent.setAllDay(event.allDay);
                calendarEvent.setCaption(event.caption);
                calendarEvent.setDescription(event.description);
                calendarEvent.setStart(getWidget().getDateFormat().parse(dateFrom));
                calendarEvent.setEnd(getWidget().getDateFormat().parse(dateTo));
                calendarEvent.setFormat24h(format24h);
                calendarEvent.setStartTime(getWidget().getDateTimeFormat().parse(
                        dateFrom + " " + timeFrom));
                calendarEvent.setEndTime(getWidget().getDateTimeFormat().parse(
                        dateTo + " " + timeTo));
                calendarEvent.setStyleName(event.styleName);
                calendarEvent.setIndex(event.index);
                list.add(calendarEvent);
            }
            return list;
        }
    View Full Code Here

    Examples of com.vaadin.ui.components.calendar.event.CalendarEvent

        @SuppressWarnings("unchecked")
        private BasicEvent getFormCalendarEvent() {
            BeanItem<CalendarEvent> item = (BeanItem<CalendarEvent>) scheduleEventFieldGroup
                    .getItemDataSource();
            CalendarEvent event = item.getBean();
            return (BasicEvent) event;
        }
    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.