Examples of BasicEventProvider


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

    /**
     * Construct a Vaadin Calendar with a BasicEventProvider and no caption.
     * Default date range is one week.
     */
    public Calendar() {
        this(null, new BasicEventProvider());
    }
View Full Code Here

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

     * caption. Default date range is one week.
     *
     * @param caption
     */
    public Calendar(String caption) {
        this(caption, new BasicEventProvider());
    }
View Full Code Here

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

        i.getItemProperty("c").setValue("Hobbies");
        return s;
    }

    private void initCalendar() {
        dataSource = new BasicEventProvider();

        calendarComponent = new Calendar(dataSource);
        calendarComponent.setLocale(getLocale());
        calendarComponent.setImmediate(true);
View Full Code Here

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

        assertEquals(caption, calendar.getCaption());
    }

    @Test
    public void testConstructorWithCustomEventProvider() {
        BasicEventProvider myProvider = new BasicEventProvider();
        Calendar calendar = new Calendar(myProvider);
        assertEquals(myProvider, calendar.getEventProvider());
    }
View Full Code Here

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

        assertEquals(myProvider, calendar.getEventProvider());
    }

    @Test
    public void testConstructorWithCustomEventProviderAndCaption() {
        BasicEventProvider myProvider = new BasicEventProvider();
        final String caption = "My Calendar Caption";
        Calendar calendar = new Calendar(caption, myProvider);
        assertEquals(caption, calendar.getCaption());
        assertEquals(myProvider, calendar.getEventProvider());
    }
View Full Code Here

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

        final Label endLbl = new Label();
        endLbl.addStyleName("end");
        info.addComponent(endLbl);

        BasicEventProvider provider = new BasicEventProvider();
        provider.addEvent(basicEvent);
        calendar.setEventProvider(provider);
        provider.addEventSetChangeListener(new EventSetChangeListener() {

            @Override
            public void eventSetChange(EventSetChangeEvent event) {
                List<CalendarEvent> events = event.getProvider().getEvents(
                        new Date(0), new Date(Long.MAX_VALUE));
View Full Code Here

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

        i.getItemProperty("c").setValue("Orange");
        return s;
    }

    private void initCalendar() {
        dataSource = new BasicEventProvider();

        calendarComponent = new Calendar(dataSource);
        calendarComponent.setLocale(getLocale());
        calendarComponent.setImmediate(true);
View Full Code Here

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

    /**
     * Construct a Vaadin Calendar with a BasicEventProvider and no caption.
     * Default date range is one week.
     */
    public Calendar() {
        this(null, new BasicEventProvider());
    }
View Full Code Here

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

     * caption. Default date range is one week.
     *
     * @param caption
     */
    public Calendar(String caption) {
        this(caption, new BasicEventProvider());
    }
View Full Code Here

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

    /**
     * Construct a Vaadin Calendar with a BasicEventProvider and no caption.
     * Default date range is one week.
     */
    public Calendar() {
        this(null, new BasicEventProvider());
    }
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.