Example #1
0
  public void loadOrganismInfo(OrganismInfo organismInfo) {
    if (organismInfo == null) {
      setNoSelection();
      return;
    }
    organismName.setEnabled(true);
    blatdb.setEnabled(true);
    genus.setEnabled(true);
    species.setEnabled(true);

    organismName.setText(organismInfo.getName());
    blatdb.setText(organismInfo.getBlatDb());
    genus.setText(organismInfo.getGenus());
    species.setText(organismInfo.getSpecies());
    sequenceFile.setText(organismInfo.getDirectory());

    deleteButton.setVisible(true);
    sequenceFile.setEnabled(true);
    deleteButton.setEnabled(true);
  }
Example #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();
  }