private void save() { try { binder.commit(); Module = HybridbpmUI.getDevelopmentAPI().saveModule(Module); binder.setItemDataSource(Module); } catch (FieldGroup.CommitException ex) { logger.log(Level.SEVERE, ex.getMessage(), ex); } }
public void save(Button.ClickEvent event) { try { formFieldBindings.commit(); service.saveAsNewCoin(coin, crawlerResult); String msg = String.format("Saved '%s'.", coin.getName()); Notification.show(msg, Notification.Type.TRAY_NOTIFICATION); parentTable.refreshResults(); } catch (FieldGroup.CommitException e) { e.printStackTrace(); } }