*/
public class CalendarRescheduleEvent extends AbstractTestUI {
@Override
protected void setup(VaadinRequest request) {
final Calendar calendar = new Calendar("Test calendar");
final java.util.Calendar cal = getAdjustedCalendar(1);
Date from = cal.getTime();
cal.add(java.util.Calendar.HOUR, 1);
Date to = cal.getTime();
final BasicEvent basicEvent = new BasicEvent("event", "description",
from, to);
HorizontalLayout info = new HorizontalLayout();
info.setSpacing(true);
info.setMargin(true);
addComponent(info);
final Label startLbl = new Label();
startLbl.addStyleName("start");
info.addComponent(startLbl);
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(