long endTime = System.currentTimeMillis();
totalResultSetCount = resultList.getNumberOfItemsFound();
- resultSetCount = resultList.getSearchSummary().size();
+ resultSetCount = resultList.getSearchSummary() == null ? 0
+ : resultList.getSearchSummary().size();
String result = (resultSetCount > 0) ? MessageManager
.getString("label.results") : MessageManager
.getString("label.result");
if (isPaginationEnabled() && resultSetCount > 0)
{
updateSearchFrameTitle(defaultFTSFrameTitle + " - " + result
- + " " + (offSet + 1) + " to "
- + (offSet + resultSetCount) + " of "
- + totalResultSetCount
+ + " "
+ + totalNumberformatter.format((Number) (offSet + 1))
+ + " to "
+ + totalNumberformatter
+ .format((Number) (offSet + resultSetCount))
+ + " of "
+ + totalNumberformatter
+ .format((Number) totalResultSetCount)
+ " " + " (" + (endTime - startTime) + " milli secs)");
}
else
setSearchInProgress(false);
refreshPaginatorState();
+ updateSummaryTableSelections();
}
}
}.start();
e.printStackTrace();
}
int[] selectedRows = getResultTable().getSelectedRows();
+ String searchTerm = txt_search.getText();
for (int summaryRow : selectedRows)
{
String idStr = getResultTable().getValueAt(summaryRow,
primaryKeyColIndex)
.toString();
- String searchTerm = txt_search.getText();
+ selectedIdsSet.add(getPDBIdwithSpecifiedChain(idStr, searchTerm));
+ }
+
+ for (String idStr : paginatorCart)
+ {
selectedIdsSet.add(getPDBIdwithSpecifiedChain(idStr, searchTerm));
}