Exemplo n.º 1
0
  protected void setSelectionModelForTable() {
    table.setSelectionModel(
        new TableSelectionModel(SelectionMode.SINGLE) {
          @Override
          protected void onMouseDown(ContainerEvent ce) {
            super.onMouseDown(ce);

            TaxonomyCache.impl.fetchNode(
                (String) table.getSelectedItem().getValues()[4],
                true,
                new GenericCallback<TaxonNode>() {
                  public void onFailure(Throwable caught) {}

                  public void onSuccess(TaxonNode result) {
                    panelManager.taxonomicSummaryPanel.update(
                        (String) table.getSelectedItem().getValues()[4]);
                    WindowManager.get().hideAll();
                  }
                });
          }
        });
  }