Beispiel #1
0
 @UiHandler("deleteButton")
 public void handleDeleteOrganism(ClickEvent clickEvent) {
   if (Window.confirm(
       "Are you sure you want to delete " + singleSelectionModel.getSelectedObject().getName())) {
     deleteButton.setEnabled(false);
     deleteButton.setText("Processing");
     savingNewOrganism = true;
     OrganismRestService.deleteOrganism(
         new UpdateInfoListCallback(), singleSelectionModel.getSelectedObject());
     loadingDialog.show();
   }
 }
Beispiel #2
0
  @UiHandler("createButton")
  public void handleSaveNewOrganism(ClickEvent clickEvent) {
    OrganismInfo organismInfo = new OrganismInfo();
    organismInfo.setName(organismName.getText());
    organismInfo.setDirectory(sequenceFile.getText());
    organismInfo.setGenus(genus.getText());
    organismInfo.setSpecies(species.getText());
    organismInfo.setBlatDb(blatdb.getText());

    createButton.setEnabled(false);
    createButton.setText("Processing");
    savingNewOrganism = true;

    OrganismRestService.createOrganism(new UpdateInfoListCallback(), organismInfo);
    loadingDialog.show();
  }
Beispiel #3
0
 private void updateOrganismInfo(boolean forceReload) {
   OrganismRestService.updateOrganismInfo(singleSelectionModel.getSelectedObject(), forceReload);
 }