/** {@inheritDoc} */
 public void okClicked() {
   // Check that at least one checkbox is selected.
   selectedAttributes.clear();
   int i = 0;
   for (T attribute : monitoringAttributes) {
     if (checkboxes[i].isSelected()) {
       selectedAttributes.add(attribute);
     }
     i++;
   }
   if (selectedAttributes.isEmpty()) {
     super.displayErrorDialog(newArrayList(INFO_CTRL_PANEL_NO_OPERATION_SELECTED.get()));
   } else {
     isCanceled = false;
     super.closeClicked();
   }
 }
Пример #2
0
 /** {@inheritDoc} */
 public void closeClicked() {
   super.closeClicked();
 }