this method is meant to be overridden by each component

@param disabled disabled
@return String
358766
protected String getItemPath(boolean disabled) {
        String selector = getBaseItemPath();
        String subPath = applyTemplateValue(disabled ? "disabled" : "enabled");
        if (subPath != null) {
            selector += !Strings.isNullOrEmpty(selector) ? " and " + subPath : subPath;
        }
        Map<String, String[]> templatesValues = getTemplatesValues();
        String[] tagAndPositions = templatesValues.get("tagAndPosition");
        List<String> tagAndPosition = new ArrayList<>();
        if (tagAndPositions != null) {
            tagAndPosition.addAll(Arrays.asList(tagAndPositions));
            tagAndPosition.add(0, getTag());
        }
        String tag;
        if (!tagAndPosition.isEmpty()) {
            tag = applyTemplate("tagAndPosition", tagAndPosition.toArray());
        } else {
            tag = getTag();
        }
        selector = getRoot() + tag + (!Strings.isNullOrEmpty(selector) ? "[" + selector + "]" : "");
        return selector;
    }
677968
public function getDisabledModuleIds()
    {
        $variablesLocator = $this->getModuleVariablesLocator();
        $disabledModules = $variablesLocator->getModuleVariable('aDisabledModules');
        $disabledModules = is_array($disabledModules) ? $disabledModules : [];

        return $disabledModules;
    }
22635
def get_disabled(self):
        
        installed = set(self.get_installed())
        enabled = set(self.get_enabled())
        return sorted(installed - enabled)
213996
public function setDisabled( $disabled ) {
		$this->disabled = (bool)$disabled;
		$this->toggleClasses( [ 'oo-ui-widget-disabled' ], $this->disabled );
		$this->toggleClasses( [ 'oo-ui-widget-enabled' ], !$this->disabled );
		$this->setAttributes( [ 'aria-disabled' => $this->disabled ? 'true' : 'false' ] );

		return $this;
	}
902259
@Deprecated
   public IndexingConfigurationBuilder enabled(boolean enabled) {
      Attribute<Index> index = attributes.attribute(INDEX);
      if (index.get() == Index.NONE & enabled)
         index.set(Index.ALL);
      else if (!enabled)
         index.set(Index.NONE);
      return this;
   }
838148
public void setDisabled(boolean disabled) {
		this.disabled = disabled;
		if (disabled) {
			handlerManager.fireEvent(new ToolbarActionDisabledEvent());
		} else {
			handlerManager.fireEvent(new ToolbarActionEnabledEvent());
		}
	}
558718
public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);
		comboBox.setEnabled(enabled);

		if (spinner != null) {
			spinner.setEnabled(enabled);
		}
	}
361854
public function setLayoutDisabled($disabled = true)
    {
        $this->_layoutDisabled = ($disabled === true) ? true : false;
        return $this;
    }
1167692
function() {
            this.options.disabled = false;
            this.$element.removeClass('editable-disabled');
            this.handleEmpty(this.isEmpty);
            if(this.options.toggle !== 'manual') {
                if(this.$element.attr('tabindex') === '-1') {    
                    this.$element.removeAttr('tabindex');                                
                }
            }
        }
401349
function() {
			var self = this;
			self.$input.prop('disabled', false);
			self.$control_input.prop('disabled', false).prop('tabindex', self.tabIndex);
			self.isDisabled = false;
			self.unlock();
		}
756302
@Override
	public boolean isEnabled() throws WidgetException {
		try {
			return getWebElement().isEnabled();
		} catch (Exception e) {
			throw new WidgetException(
					"Error while determing whether element is enabled",
					getByLocator(), e);
		}
	}
875438
@Override
    public void setComponentEnabled(boolean enabled) {
        super.setComponentEnabled(enabled);

        boolean enable = enabled && getTable().getSelectionModel().getMinSelectionIndex() >= 0;
        if (enable) {
            updateMoveButtons();
        } else {
            disableMoveButtons();
        }
    }
938611
public void setFormEnabled(boolean enabled) {

        m_formEnabled = enabled;
        m_selectBox.setEnabled(enabled);
        m_heightBox.setEnabled(enabled);
        m_widthBox.setEnabled(enabled);
        if (enabled) {
            m_cropButton.enable();
            m_removeCropButton.enable();
        } else {
            m_cropButton.disable(Messages.get().key(Messages.GUI_IMAGE_NO_FORMATS_AVAILABLE_0));
            m_removeCropButton.disable(Messages.get().key(Messages.GUI_IMAGE_NO_FORMATS_AVAILABLE_0));
        }
    }
496906
public static void setEnabled(Element element, boolean enabled) {
        element.setPropertyBoolean("disabled", !enabled);
	setStyleName(element, "disabled", !enabled);
    }
976990
public boolean enabled() {
        boolean isEnabled = false;
        try {
            // adding additional check for disabled attribute, due to issues with safari
            isEnabled = (element.getWebElement().isEnabled() && !element.get().allAttributes().containsKey("disabled"));
        } catch (NullPointerException | NoSuchElementException e) {
            // Null pointer means the element was deleted, and there has no attributes. No such element means the same thing
            log.info(e);
        }
        return isEnabled;
    }
1168804
public function getByEnabled($enabled = true)
    {
        $disabledPluggables = [];
        $enabledPluggables = [];

        $pluggables = $this->all();

        // Iterate through each pluggable
        foreach ($pluggables as $pluggable) {
            if ($this->isEnabled($pluggable['slug'])) {
                $enabledPluggables[] = $pluggable;
            } else {
                $disabledPluggables[] = $pluggable;
            }
        }

        if ($enabled === true) {
            return $this->sortByOrder($enabledPluggables);
        }

        return $this->sortByOrder($disabledPluggables);
    }
851965
private void updateEnabled(boolean interrupted) {
        ((Menubar)getJMenuBar()).updateEnabled(interrupted);
        for (int ci = 0, cc = toolBar.getComponentCount(); ci < cc; ci++) {
            boolean enableButton;
            if (ci == 0) {
                // Break
                enableButton = !interrupted;
            } else {
                enableButton = interrupted;
            }
            toolBar.getComponent(ci).setEnabled(enableButton);
        }
        if (interrupted) {
            toolBar.setEnabled(true);
            // raise the debugger window
            int state = getExtendedState();
            if (state == Frame.ICONIFIED) {
                setExtendedState(Frame.NORMAL);
            }
            toFront();
            context.setEnabled(true);
        } else {
            if (currentWindow != null) currentWindow.setPosition(-1);
            context.setEnabled(false);
        }
    }