示例#1
0
 private JLabel getActiveScansValueLabel() {
   if (foundCountNameLabel == null) {
     foundCountNameLabel = new javax.swing.JLabel();
     foundCountNameLabel.setText(String.valueOf(controller.getActiveScans().size()));
   }
   return foundCountNameLabel;
 }
示例#2
0
  private void setActiveScanLabelsEventHandler() {
    List<GS> ascans = controller.getActiveScans();
    getActiveScansValueLabel().setText(String.valueOf(ascans.size()));
    StringBuilder sb = new StringBuilder();
    sb.append("<html>");
    for (GS ascan : ascans) {
      sb.append(ascan.getDisplayName());
      sb.append("<br>");
    }
    sb.append("</html>");

    final String toolTip = sb.toString();
    getActiveScansNameLabel().setToolTipText(toolTip);
    getActiveScansValueLabel().setToolTipText(toolTip);

    scanStatus.setScanCount(ascans.size());
    this.getClearScansButton().setEnabled(controller.getAllScans().size() - ascans.size() > 0);
  }