Пример #1
0
 @Override
 public void valueChange(Property.ValueChangeEvent event) {
   final Property property = event.getProperty();
   if (property == table) {
     final OperatingCost operatingCosts =
         OperatingCostFacade.getOperatingCostService().findById(table.getValue().toString());
     form.binder.setItemDataSource(new BeanItem<>(getBean(operatingCosts)));
     setReadFormProperties();
   }
 }
Пример #2
0
 private void addListeners() {
   // Register Button Listeners
   form.save.addClickListener((Button.ClickListener) this);
   form.edit.addClickListener((Button.ClickListener) this);
   form.cancel.addClickListener((Button.ClickListener) this);
   form.update.addClickListener((Button.ClickListener) this);
   form.delete.addClickListener((Button.ClickListener) this);
   // Register Table Listerners
   table.addValueChangeListener((Property.ValueChangeListener) this);
 }