Package com.danhaywood.isis.wicket.fullcalendar2

Examples of com.danhaywood.isis.wicket.fullcalendar2.CalendaredCollectionAbstract


        return new Function<ObjectAdapter, Event>() {

            public Event apply(final ObjectAdapter input) {

                final Object domainObject = input.getObject();
                final CalendarEvent calendarEvent = calendarEventFor(domainObject, calendarName);
                if(calendarEvent == null) {
                    return null;
                }

                final Event event = new Event();
               
                final DateTime start = calendarEvent.getDateTime();
                final DateTime end = start;
                event.setStart(start);
                event.setEnd(end);
                event.setAllDay(true);

                final String oidStr = input.getOid().enString(IsisContext.getOidMarshaller());
                event.setId(oidStr + "-" + calendarName);

                event.setClassName("fullCalendar2-event-" + calendarName);
                event.setEditable(false);
                event.setPayload(oidStr);
                event.setTitle(calendarEvent.getTitle());

                //event.setBackgroundColor(backgroundColor)
                //event.setBorderColor(borderColor)
                //event.setColor(color)
                //event.setTextColor(textColor)
View Full Code Here


        return new Function<ObjectAdapter, Event>() {

            public Event apply(final ObjectAdapter input) {

                final Object domainObject = input.getObject();
                final CalendarEvent calendarEvent = calendarEventFor(domainObject, calendarName);
                if(calendarEvent == null) {
                    return null;
                }

                final Event event = new Event();
               
                final DateTime start = calendarEvent.getDateTime();
                final DateTime end = start;
                event.setStart(start);
                event.setEnd(end);
                event.setAllDay(true);

                final String oidStr = input.getOid().enString(IsisContext.getOidMarshaller());
                event.setId(oidStr + "-" + calendarName);

                event.setClassName("fullCalendar2-event-" + calendarName);
                event.setEditable(false);
                event.setPayload(oidStr);
                event.setTitle(calendarEvent.getTitle());

                //event.setBackgroundColor(backgroundColor)
                //event.setBorderColor(borderColor)
                //event.setColor(color)
                //event.setTextColor(textColor)
View Full Code Here

    }

    protected CalendarEvent calendarEventFor(final Object domainObject, final String calendarName) {
        final Calendarable calendarable = (Calendarable)domainObject;
        final Map<String, CalendarEventable> calendarEvents = calendarable.getCalendarEvents();
        final CalendarEventable calendarEventable = calendarEvents.get(calendarName);
        return calendarEventable!=null
                ?calendarEventable.toCalendarEvent()
                :null;
    }
View Full Code Here

        super(collectionModel, calendarName);
    }

    @Override
    protected CalendarEvent calendarEventFor(Object domainObject, String calendarName) {
        final CalendarEventable calendarEventable = (CalendarEventable)domainObject;
        return calendarName.equals(calendarEventable.getCalendarName())
                ? calendarEventable.toCalendarEvent()
                : null;
    }
View Full Code Here

    }

    protected CalendarEvent calendarEventFor(final Object domainObject, final String calendarName) {
        final Calendarable calendarable = (Calendarable)domainObject;
        final Map<String, CalendarEventable> calendarEvents = calendarable.getCalendarEvents();
        final CalendarEventable calendarEventable = calendarEvents.get(calendarName);
        return calendarEventable!=null
                ?calendarEventable.toCalendarEvent()
                :null;
    }
View Full Code Here

        super(collectionModel, calendarName);
    }

    @Override
    protected CalendarEvent calendarEventFor(Object domainObject, String calendarName) {
        final CalendarEventable calendarEventable = (CalendarEventable)domainObject;
        return calendarName.equals(calendarEventable.getCalendarName())
                ? calendarEventable.toCalendarEvent()
                : null;
    }
View Full Code Here

    public CalendarableEventProvider(final EntityCollectionModel collectionModel, final String calendarName) {
        super(collectionModel, calendarName);
    }

    protected CalendarEvent calendarEventFor(final Object domainObject, final String calendarName) {
        final Calendarable calendarable = (Calendarable)domainObject;
        final Map<String, CalendarEventable> calendarEvents = calendarable.getCalendarEvents();
        final CalendarEventable calendarEventable = calendarEvents.get(calendarName);
        return calendarEventable!=null
                ?calendarEventable.toCalendarEvent()
                :null;
    }
View Full Code Here

    public CalendarableEventProvider(final EntityCollectionModel collectionModel, final String calendarName) {
        super(collectionModel, calendarName);
    }

    protected CalendarEvent calendarEventFor(final Object domainObject, final String calendarName) {
        final Calendarable calendarable = (Calendarable)domainObject;
        final Map<String, CalendarEventable> calendarEvents = calendarable.getCalendarEvents();
        final CalendarEventable calendarEventable = calendarEvents.get(calendarName);
        return calendarEventable!=null
                ?calendarEventable.toCalendarEvent()
                :null;
    }
View Full Code Here

TOP

Related Classes of com.danhaywood.isis.wicket.fullcalendar2.CalendaredCollectionAbstract

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.