private void updateCalendarEventForm(CalendarEvent event) { BeanItem<CalendarEvent> item = new BeanItem<>(event); scheduleEventFieldLayout.removeAllComponents(); scheduleEventFieldGroup = new FieldGroup(); initFormFields(scheduleEventFieldLayout, event.getClass()); scheduleEventFieldGroup.setBuffered(true); scheduleEventFieldGroup.setItemDataSource(item); scheduledEventBinder.readBean(event); }
private void discardCalendarEvent() { scheduleEventFieldGroup.discard(); scheduledEventBinder.readBean(getFormCalendarEvent()); removeWindow(scheduleEventPopup); }