Package com.vaadin.addon.calendar.event

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


        } else {
            /*
             * Else we use the properties to create the event
             */
            BasicEvent basicEvent = new ContainerCalendarEvent(index);

            // Set values from property values
            if (captionProperty != null
                    && item.getItemPropertyIds().contains(captionProperty)) {
                basicEvent.setCaption(String.valueOf(item.getItemProperty(
                        captionProperty).getValue()));
            }
            if (descriptionProperty != null
                    && item.getItemPropertyIds().contains(
                            descriptionProperty)) {
                basicEvent.setDescription(String.valueOf(item
                        .getItemProperty(descriptionProperty).getValue()));
            }
            if (startDateProperty != null
                    && item.getItemPropertyIds()
                    .contains(startDateProperty)) {
                basicEvent.setStart((Date) item.getItemProperty(
                        startDateProperty).getValue());
            }
            if (endDateProperty != null
                    && item.getItemPropertyIds().contains(endDateProperty)) {
                basicEvent.setEnd((Date) item.getItemProperty(
                        endDateProperty).getValue());
            }
            if (styleNameProperty != null
                    && item.getItemPropertyIds()
                    .contains(styleNameProperty)) {
                basicEvent.setDescription(String.valueOf(item
                        .getItemProperty(descriptionProperty).getValue()));
            }
            event = basicEvent;
        }
        return event;
View Full Code Here

TOP

Related Classes of com.vaadin.addon.calendar.event.BasicEvent

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.