コード例 #1
0
 @Override
 public void deletePhenotype(Phenotype phenotype) {
   dispatch.execute(
       new DeletePhenotypeAction(phenotype.getName(), backendResultReader),
       new GWASCallback<BaseStatusResult>(getEventBus()) {
         @Override
         public void onSuccess(BaseStatusResult result) {
           UpdateDataEvent.fire(PhenotypeListPresenter.this);
         }
       });
 }
コード例 #2
0
 private DataTable getStatisticsData(List<Phenotype> phenotypes) {
   DataTable data = DataTable.create();
   data.addColumn(ColumnType.STRING, "Phenotype");
   data.addColumn(ColumnType.NUMBER, "Values");
   data.addColumn(ColumnType.NUMBER, "Datasets");
   data.addColumn(ColumnType.NUMBER, "Transformations");
   data.addColumn(ColumnType.NUMBER, "Results");
   data.addRows(phenotypes.size());
   for (int i = 0; i < phenotypes.size(); i++) {
     Phenotype phenotype = phenotypes.get(i);
     data.setValue(i, 0, phenotype.getName());
     data.setValue(i, 1, phenotype.getNumValues());
     data.setValue(i, 2, phenotype.getDatasets().size());
     data.setValue(i, 3, phenotype.getTransformationCount());
     data.setValue(i, 4, phenotype.getResultCount());
   }
   return data;
 }