com.vaadin.ui.components.calendar.handler
Class BasicWeekClickHandler

java.lang.Object
  extended by com.vaadin.ui.components.calendar.handler.BasicWeekClickHandler
All Implemented Interfaces:
CalendarComponentEvents.WeekClickHandler, java.io.Serializable, java.util.EventListener

public class BasicWeekClickHandler
extends java.lang.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:
Serialized Form

Field Summary
 
Fields inherited from interface com.vaadin.ui.components.calendar.CalendarComponentEvents.WeekClickHandler
weekClickMethod
 
Constructor Summary
BasicWeekClickHandler()
           
 
Method Summary
protected  void setDates(CalendarComponentEvents.WeekClick event, java.util.Date start, java.util.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicWeekClickHandler

public BasicWeekClickHandler()
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 interface CalendarComponentEvents.WeekClickHandler
Parameters:
event - WeekClick containing the target week and year.

setDates

protected void setDates(CalendarComponentEvents.WeekClick event,
                        java.util.Date start,
                        java.util.Date end)
Set the start and end dates for the event

Parameters:
event - The event that the start and end dates should be set
start - The start date
end - The end date


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.