We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.ui.components.calendar.handler.
Class BasicDateClickHandler
- java.lang.Object
-
- com.vaadin.ui.components.calendar.handler.BasicDateClickHandler
-
All Implemented Interfaces:
CalendarComponentEvents.DateClickHandler
,Serializable
,EventListener
public class BasicDateClickHandler extends Object implements CalendarComponentEvents.DateClickHandler
Implements basic functionality needed to switch to day view when a single day is clicked.
Since:
7.1
Author:
Vaadin Ltd.
See Also:
-
-
Field Summary
-
Fields inherited from interface com.vaadin.ui.components.calendar.CalendarComponentEvents.DateClickHandler
dateClickMethod
-
-
Constructor Summary
Constructors Constructor Description BasicDateClickHandler()
-
Method Summary
All Methods Modifier and Type Method Description void
dateClick(CalendarComponentEvents.DateClickEvent event)
This method will be called when a date is clicked.
protected void
setDates(CalendarComponentEvents.DateClickEvent event, Date start, Date end)
Set the start and end dates for the event
-
-
-
Method Detail
-
dateClick
public void dateClick(CalendarComponentEvents.DateClickEvent event)
Description copied from interface:
CalendarComponentEvents.DateClickHandler
This method will be called when a date is clicked.
Specified by:
dateClick
in interfaceCalendarComponentEvents.DateClickHandler
Parameters:
event
- DateClickEvent containing the target date.
-
setDates
protected void setDates(CalendarComponentEvents.DateClickEvent event, Date start, Date end)
Set the start and end dates for the event
Parameters:
event
- The event that the start and end dates should be setstart
- The start dateend
- The end date
-
-