/* * Copyright 2000-2014 Vaadin Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.vaadin.ui.components.calendar.event; import java.io.Serializable; import java.util.Date; import java.util.List; /** * Interface for querying events. The Vaadin Calendar always has a * CalendarEventProvider set. * * @since 7.1.0 * @author Vaadin Ltd. */ public interface CalendarEventProvider extends Serializable { /** *
* Gets all available events in the target date range between startDate and * endDate. The Vaadin Calendar queries the events from the range that is * shown, which is not guaranteed to be the same as the date range that is * set. *
* ** For example, if you set the date range to be monday 22.2.2010 - wednesday * 24.2.2010, the used Event Provider will be queried for events between * monday 22.2.2010 00:00 and sunday 28.2.2010 23:59. Generally you can * expect the date range to be expanded to whole days and whole weeks. *
* * @param startDate * Start date * @param endDate * End date * @return List of events */ public List