示例#1
0
 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);
   }
 }
示例#2
0
  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();
    }
  }