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 BasicWeekClickHandler
- java.lang.Object
-
- com.vaadin.ui.components.calendar.handler.BasicWeekClickHandler
-
All Implemented Interfaces:
CalendarComponentEvents.WeekClickHandler
,Serializable
,EventListener
public class BasicWeekClickHandler extends Object implements CalendarComponentEvents.WeekClickHandler
Implements basic functionality needed to change to week view when a week number is clicked.
Since:
7.1
Author:
Vaadin Ltd.
See Also:
-
-
Field Summary
-
Fields inherited from interface com.vaadin.ui.components.calendar.CalendarComponentEvents.WeekClickHandler
weekClickMethod
-
-
Constructor Summary
Constructors Constructor Description BasicWeekClickHandler()
-
Method Summary
All Methods Modifier and Type Method Description protected void
setDates(CalendarComponentEvents.WeekClick event, Date start, Date end)
Set the start and end dates for the event
void
weekClick(CalendarComponentEvents.WeekClick event)
This method will be called when a week is clicked.
-
-
-
Method Detail
-
weekClick
public void weekClick(CalendarComponentEvents.WeekClick event)
Description copied from interface:
CalendarComponentEvents.WeekClickHandler
This method will be called when a week is clicked.
Specified by:
weekClick
in interfaceCalendarComponentEvents.WeekClickHandler
Parameters:
event
- WeekClick containing the target week and year.
-
setDates
protected void setDates(CalendarComponentEvents.WeekClick 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
-
-