Do the actual enable/disable of the target field(s).
@param bEnableFlag If true, enable.
506197
public void setEnabled(boolean bEnableFlag)   // Init this field override for other value
    {
        if (m_fldTarget != null)
            m_fldTarget.setEnabled(bEnableFlag);
        else if (m_sField != null)
            m_sField.setEnabled(bEnableFlag);
        else
        {   // No field means enable/disable the key fields.
            Record table = this.getOwner();
            boolean bDisableOnFound = false;
            int iLastField = table.getFieldCount() + DBConstants.MAIN_FIELD - 1;
            for (int iFieldSeq = DBConstants.MAIN_FIELD; iFieldSeq <= iLastField; iFieldSeq++)
            {
                BaseField field = table.getField(iFieldSeq);
                BaseListener listener = field.getListener(MainReadOnlyHandler.class.getName());
                if (listener == null) // Don't touch if this has a read second listener on it!
                    field.setEnabled(bEnableFlag);
                if (field.getListener(DisableOnFieldHandler.class.getName()) != null)
                    bDisableOnFound = true;
            }
            if (bDisableOnFound)
            {   // These field listeners need to be notified that their fields have been enabled/disabled
                for (int iFieldSeq = DBConstants.MAIN_FIELD; iFieldSeq <= iLastField; iFieldSeq++)
                {
                    BaseField field = table.getField(iFieldSeq);
                    DisableOnFieldHandler listener = (DisableOnFieldHandler)field.getListener(DisableOnFieldHandler.class.getName());
                    if (listener != null)
                        listener.fieldChanged(DBConstants.DISPLAY, DBConstants.SCREEN_MOVE);    // I can do this because I know that this listener will not modify anything.
                }
                
            }
        }
    }
309451
public void setAutoFormattingEnabled(Boolean enable) {
		final IPreferenceStore store = getWritablePreferenceStore(null);
		if (enable == null) {
			store.setToDefault(AUTOFORMATTING_PROPERTY);
		} else {
			store.setValue(AUTOFORMATTING_PROPERTY, enable.booleanValue());
		}
	}
496906
public static void setEnabled(Element element, boolean enabled) {
        element.setPropertyBoolean("disabled", !enabled);
	setStyleName(element, "disabled", !enabled);
    }
165443
public void setEnabled(boolean enable) {
        if (enable && !mEnabled) {
            if (DBG) Log.d(TAG, "Notification handler=" + ID + " is now enabled.");
            mEnabled = true;
        } else if (!enable && mEnabled) {
            if (DBG) Log.d(TAG, "Notification handler=" + ID + " is now disabled.");
            mEnabled = false;
            cancelAll();
        }
    }
237006
public void setBarEffectEnabled(final boolean ENABLED) {
        if (null == barEffectEnabled) {
            _barEffectEnabled = ENABLED;
            fireUpdateEvent(VISIBILITY_EVENT);
        } else {
            barEffectEnabled.set(ENABLED);
        }
    }
209543
private void applyEnableAction(final WComponent target, final boolean enabled) {
		// Found Disableable component
		if (target instanceof Disableable) {
			target.setValidate(enabled);
			((Disableable) target).setDisabled(!enabled);
		} else if (target instanceof Container) {  // Apply to any Disableable children
			Container cont = (Container) target;
			final int size = cont.getChildCount();

			for (int i = 0; i < size; i++) {
				WComponent child = cont.getChildAt(i);
				applyEnableAction(child, enabled);
			}
		}
	}
124975
public static void setAndroidLScanningDisabled(boolean disabled) {
        sAndroidLScanningDisabled = disabled;
        BeaconManager instance = sInstance;
        if (instance != null) {
            instance.applySettings();
        }
    }
956637
public void createEnablement() {
        GlobalEnablementBuilder builder = beanManager.getServices().get(GlobalEnablementBuilder.class);
        ModuleEnablement enablement = builder.createModuleEnablement(this);
        beanManager.setEnabled(enablement);

        if (BootstrapLogger.LOG.isDebugEnabled()) {
            BootstrapLogger.LOG.enabledAlternatives(this.beanManager, WeldCollections.toMultiRowString(enablement.getAllAlternatives()));
            BootstrapLogger.LOG.enabledDecorators(this.beanManager, WeldCollections.toMultiRowString(enablement.getDecorators()));
            BootstrapLogger.LOG.enabledInterceptors(this.beanManager, WeldCollections.toMultiRowString(enablement.getInterceptors()));
        }
    }
1139078
private void enableDisableView(View view, boolean enabled) {
        view.setEnabled(enabled);
        view.setFocusable(enabled);
        if (view instanceof ViewGroup) {
            ViewGroup group = (ViewGroup) view;

            for (int idx = 0; idx < group.getChildCount(); idx++) {
                enableDisableView(group.getChildAt(idx), enabled);
            }
        }
    }
671477
def setOverlayFlag(self, ulOverlayHandle, eOverlayFlag, bEnabled):
        """"""

        fn = self.function_table.setOverlayFlag
        result = fn(ulOverlayHandle, eOverlayFlag, bEnabled)
        return result
1167541
public static void setFlag(Activity activity, final int bits, boolean on) {
        Window win = activity.getWindow();
        WindowManager.LayoutParams winParams = win.getAttributes();
        if (on) {
            winParams.flags |= bits;
        } else {
            winParams.flags &= ~bits;
        }
        win.setAttributes(winParams);
    }
1305298
public void enable() {

        updateState("up");
        m_enabled = true;
        // show the current file input field
        if (m_fileInput != null) {
            m_fileInput.getElement().getStyle().clearDisplay();
        }
        super.setTitle(m_title);
    }
790549
public void setViewEnabled(boolean enable) {
        if (hasState(ENABLED) != enable) {
            if (DBG) Log.v(TAG, "enable - " + enable);
            if (enable) {
                addState(ENABLED);
            } else {
                clearState(ENABLED);
            }
        }
    }
658250
public void setEnabled(boolean enabled) {
        setEnabled(enabled, ENABLED_MASK);
        if (enabled) {
            Log parent;
            if ((parent = mParent) != null) {
                parent.setEnabled(true);
            }
        }
    }
197113
public void setAdvertising(boolean enable) {
        Buffer buffer = new Buffer();
        buffer.writeByte(enable ? 1 : 0);
        sendMessage(BeanMessageID.BT_ADV_ONOFF, buffer);
    }
1248789
@Override
    public void setComponentEnabled(boolean enabled) {
        super.setComponentEnabled(enabled);

        addButton.setEnabled(enabled);
        removeWithoutConfirmationCheckBox.setEnabled(enabled);

        boolean enable = enabled && getTable().getSelectionModel().getMinSelectionIndex() >= 0;
        if (modifyButton != null) {
            modifyButton.setEnabled(enable);
        }
        removeButton.setEnabled(enable);
    }
558718
public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);
		comboBox.setEnabled(enabled);

		if (spinner != null) {
			spinner.setEnabled(enabled);
		}
	}