Пример #1
0
 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);
 }
Пример #2
0
 private void discardCalendarEvent() {
   scheduleEventFieldGroup.discard();
   scheduledEventBinder.readBean(getFormCalendarEvent());
   removeWindow(scheduleEventPopup);
 }