コード例 #1
0
  private void clearSelections() {
    selectedHospitalIDs.removeAll(selectedHospitalIDs);
    selectedRows.removeAll(selectedRows);

    individualsSTP.setToggledRows(null);
    refreshSelectionIndicator();
  }
コード例 #2
0
  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);
  }