private void updateEnabled() { Iterator iter = controls.iterator(); while (iter.hasNext()) { Control control = (Control) iter.next(); control.setEnabled(enabled); } }
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); } } }