private void clearSelections() { selectedHospitalIDs.removeAll(selectedHospitalIDs); selectedRows.removeAll(selectedRows); individualsSTP.setToggledRows(null); refreshSelectionIndicator(); }
private void refreshSelectionIndicator() { String tooltipText = "<html>"; for (String o : this.selectedHospitalIDs) { tooltipText += o + "<br>"; } tooltipText += "</html>"; this.numselections.setToolTipText(tooltipText); individualsSTP.setToggledRows(selectedRows); numselections.setText(this.selectedHospitalIDs.size() + " individual(s) selected"); ok.setEnabled(this.selectedHospitalIDs.size() > 0); }