Enable or disable the JSpinField.

@param enabled
The new enabled value
435603
public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);
		spinner.setEnabled(enabled);
		textField.setEnabled(enabled);
		/*
		 * Fixes the background bug
		 * 4991597 and sets the background explicitely to a
		 * TextField.inactiveBackground.
		 */
		if (!enabled) {
			textField.setBackground(UIManager.getColor("TextField.inactiveBackground"));
		}
	}
619409
public void setEnabled(String enabled) {

        if (m_frozen) {
            throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_SUBSCRIPTIONMANAGER_FROZEN_0));
        }
        m_enabled = Boolean.valueOf(enabled).booleanValue();
    }
716051
public void setEnablecfoutputonly(Object enablecfoutputonly) throws PageException {
	if (enablecfoutputonly instanceof String && Caster.toString(enablecfoutputonly).trim().equalsIgnoreCase("reset")) {
	    pageContext.setCFOutputOnly((short) 0);
	}
	else {
	    pageContext.setCFOutputOnly(Caster.toBooleanValue(enablecfoutputonly));
	}
    }
174628
public static void setDeepEnabled(Component component, boolean enabled)
    {
        component.setEnabled(enabled);
        if (component instanceof Container)
        {
            Container container = (Container)component;
            for (Component c : container.getComponents())
            {
                setDeepEnabled(c, enabled);
            }
        }
    }
549447
public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);

		if (dayChooser != null) {
			dayChooser.setEnabled(enabled);
			monthChooser.setEnabled(enabled);
			yearChooser.setEnabled(enabled);
		}
	}
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.
                }
                
            }
        }
    }
577556
public void setViewEnabled(boolean enable) {
        final NotificationRootView root = mWindow.mRoot;
        root.setViewEnabled(enable);
        if (enable && mView == null) {
            mView = root.getView();
            mView.initialize(this);
            mView.addStateListener(new ViewStateListener());
        }
    }
899374
public void setAveragingEnabled(final boolean ENABLED) {
        if (null == averagingEnabled) {
            _averagingEnabled = ENABLED;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            averagingEnabled.set(ENABLED);
        }
    }
838148
public void setDisabled(boolean disabled) {
		this.disabled = disabled;
		if (disabled) {
			handlerManager.fireEvent(new ToolbarActionDisabledEvent());
		} else {
			handlerManager.fireEvent(new ToolbarActionEnabledEvent());
		}
	}
191977
private void setConditionEnabled(boolean enabled)
	{
		fConditionEditor.setEnabled(enabled);
		fSuspendWhenLabel.setEnabled(enabled);
		fConditionIsTrue.setEnabled(enabled);
		fConditionHasChanged.setEnabled(enabled);
	}
518323
@Override
    public void setEnabled(boolean enabled) {
        if (this.enabled != enabled) {
            this.enabled = enabled;
            setProperty("enabled", Boolean.toString(enabled));
            if (enabled && getAlertThreshold() == AlertThreshold.OFF) {
                setAlertThreshold(AlertThreshold.DEFAULT);
            }
        }
    }
534913
public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);

		for (short i = 0; i < days.length; i++) {
			if (days[i] != null) {
				days[i].setEnabled(enabled);
			}
		}

		for (short i = 0; i < weeks.length; i++) {
			if (weeks[i] != null) {
				weeks[i].setEnabled(enabled);
			}
		}
	}
722868
function(enabledElement) {
  // Note: We may want to `setToolDisabled` before removing from store
  // Or take other action to remove any lingering eventListeners/state
  store.state.tools = store.state.tools.filter(
    tool => tool.element !== enabledElement
  );
}
1348800
public void setBoardEnabled(boolean enable) {
        final NotificationRootView root = mWindow.mRoot;
        root.setBoardEnabled(enable);
        if (enable && mBoard == null) {
            mBoard = root.getBoard();
            mBoard.addStateListener(new BoardStateListener());
        }
    }
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);
    }
474461
public void setEnabledToolConfig(int tool, boolean enabled) {
        switch (tool) {
            case IBurpExtenderCallbacks.TOOL_PROXY:
                jCheckBoxProxy.setEnabled(enabled);
                break;
            case IBurpExtenderCallbacks.TOOL_REPEATER:
                jCheckBoxRepeater.setEnabled(enabled);
                break;
            case IBurpExtenderCallbacks.TOOL_SCANNER:
                jCheckBoxScanner.setEnabled(enabled);
                break;
            case IBurpExtenderCallbacks.TOOL_INTRUDER:
                jCheckBoxIntruder.setEnabled(enabled);
                break;
            case IBurpExtenderCallbacks.TOOL_SEQUENCER:
                jCheckBoxSequencer.setEnabled(enabled);
                break;
            case IBurpExtenderCallbacks.TOOL_SPIDER:
                jCheckBoxSpider.setEnabled(enabled);
                break;
            case IBurpExtenderCallbacks.TOOL_EXTENDER:
                jCheckBoxExtender.setEnabled(enabled);
                break;
            default:
                break;
        }
    }
675190
public void enableSelectOnTouch(boolean enable) {
        Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "enableSelectOnTouch %s enable = %b", getName(), enable);
        mSelectOnTouchEnabled = enable;
    }