Пример #1
0
 private void updateEnabled() {
   Iterator iter = controls.iterator();
   while (iter.hasNext()) {
     Control control = (Control) iter.next();
     control.setEnabled(enabled);
   }
 }
Пример #2
0
 public void changeControlState(boolean enabled) {
   if (getControls() == null) return;
   Iterator it = getControls().iterator();
   while (it.hasNext()) {
     ISootOptionWidget control = (ISootOptionWidget) it.next();
     if (control.getControls() == null) continue;
     Iterator conIt = control.getControls().iterator();
     while (conIt.hasNext()) {
       Object obj = conIt.next();
       ((Control) obj).setEnabled(enabled);
     }
   }
 }