Java 类com.vaadin.ui.components.calendar.CalendarComponentEvents.EventClick 实例源码

项目:scoutmaster    文件:CalendarView.java   
@Override
public void eventClick(final EventClick event)
{
    if (event != null)
    {
        CalendarView.this.currentEvent = (ScoutCalEvent) event.getCalendarEvent();
        CalendarView.this.eventDetails.setEvent(CalendarView.this.currentEvent.getEntity(), false);
    }
    else
    {
        CalendarView.this.currentEvent = null;
        CalendarView.this.eventDetails.setEvent(null, false);
    }
}