code: public void propertyChange( PropertyChangeEvent evt ) {
          int[] selected = (int[]) selectionHolder.getValue();
          guarded.setEnabled(shouldEnable(selected));
      }
docs: Handle a change in the selectionHolder value.