Пример #1
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();
    }
  }
Пример #2
0
 public void cancel(Button.ClickEvent event) {
   Notification.show("Cancelled", Notification.Type.TRAY_NOTIFICATION);
   removeAllComponents();
   parentTable.unSelectResult();
 }