Sets the clear list button enabled.<p>

@param enabled <code>true</code> to enable the button
519089
public void setClearButtonEnabled(boolean enabled) {

        if (enabled) {
            m_clearButton.enable();
        } else {
            m_clearButton.disable(Messages.get().key(Messages.GUI_DISABLE_CLEAR_LIST_0));
        }
    }
496906
public static void setEnabled(Element element, boolean enabled) {
        element.setPropertyBoolean("disabled", !enabled);
	setStyleName(element, "disabled", !enabled);
    }
416799
protected void setSaveEnabled(boolean enabled, String disabledMessage) {

        if (m_saveButton != null) {
            if (enabled) {
                m_saveButton.enable();
            } else {
                m_saveButton.disable(disabledMessage);
            }
        }
    }
196345
protected void setOkEnabled(boolean enabled) {

        if (enabled) {
            m_okButton.enable();
        } else {
            m_okButton.disable(
                org.opencms.ade.sitemap.client.Messages.get().key(
                    org.opencms.ade.sitemap.client.Messages.GUI_NEW_GALLERY_VALIDATION_0));
        }
    }
875438
@Override
    public void setComponentEnabled(boolean enabled) {
        super.setComponentEnabled(enabled);

        boolean enable = enabled && getTable().getSelectionModel().getMinSelectionIndex() >= 0;
        if (enable) {
            updateMoveButtons();
        } else {
            disableMoveButtons();
        }
    }
1341283
public void setEnabled(String layerName, boolean enabled) {
        synchronized (this) {
            if (enabled)
                layers.add(layerName);
            else
                layers.remove(layerName);
        }
    }
684774
public void setEnabled(boolean enabled) {
		if (enabled && engine == null) {
			return;
		}

		if (this.enabled != enabled) {
			this.enabled = enabled;
			this.changed = true;
		}
	}
870534
public void setEnabled (final SoundType type, final boolean enabled)
    {
        boolean changed;
        if (enabled) {
            changed = _disabledTypes.remove(type);
        } else {
            changed = _disabledTypes.add(type);
        }
        if (changed) {
            _enabledObservers.apply(new ObserverOp<SoundEnabledObserver>() {
                public boolean apply (SoundEnabledObserver observer) {
                    observer.enabledChanged(type, enabled);
                    return true;
                }
            });
        }
    }
559330
public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);
		for (Iterator members = getMemberList().iterator(); members.hasNext();)
		{
		    GroupMember groupMember = (GroupMember)members.next();
		    groupMember.setEnabled(enabled);
		}
	}
21107
@SuppressWarnings("unchecked")
	private void enableButtons() {
		final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection();
		final int selectionCount = selection.size();
		this.editButton.setEnabled(selectionCount == 1);
		this.copyButton.setEnabled(selectionCount > 0);
		if (selectionCount > 0 && selectionCount <= this.sresList.getTable().getItemCount()) {
			final Iterator<ISREInstall> iterator = selection.iterator();
			while (iterator.hasNext()) {
				final ISREInstall install = iterator.next();
				if (SARLRuntime.isPlatformSRE(install)) {
					this.removeButton.setEnabled(false);
					return;
				}
			}
			this.removeButton.setEnabled(true);
		} else {
			this.removeButton.setEnabled(false);
		}
	}
721179
private void setListSelection(int selectedIndex) {
        if (selectedIndex == -1) {
            list.clearSelection();
        } else {
            list.setSelectedIndex(selectedIndex);
            list.ensureIndexIsVisible(selectedIndex);
        }
    }
562736
public void setEnabled(boolean bEnable)
    {
        if (m_vScreenField != null)
        {
            for (Enumeration<Object> e = m_vScreenField.elements() ; e.hasMoreElements() ;)
            {
                ((ScreenComponent)e.nextElement()).setEnabled(bEnable);
            }
        }
    }
564518
public void setNavigationAddonEnabled(boolean enabled) {
		navigationAddonEnabled = enabled;
		final String panId = "panBTNCollection";
		final String zoomId = "zoomAddon";
		final String zoomRectId = "zoomRectAddon";

		if (enabled) {
			if (!getMapAddons().containsKey(panId)) {
				PanButtonCollection panButtons = new PanButtonCollection(panId, this);
				panButtons.setHorizontalMargin(5);
				panButtons.setVerticalMargin(5);
				registerMapAddon(panButtons);
			}

			if (!getMapAddons().containsKey(zoomId)) {
				ZoomAddon zoomAddon = new ZoomAddon(zoomId, this);
				zoomAddon.setHorizontalMargin(20);
				zoomAddon.setVerticalMargin(65);
				registerMapAddon(zoomAddon);
			}

			if (!getMapAddons().containsKey(zoomRectId)) {
				ZoomToRectangleAddon zoomToRectangleAddon = new ZoomToRectangleAddon(zoomRectId, this);
				zoomToRectangleAddon.setHorizontalMargin(20);
				zoomToRectangleAddon.setVerticalMargin(135);
				registerMapAddon(zoomToRectangleAddon);
			}
		} else {
			unregisterMapAddon(addons.get(panId));
			unregisterMapAddon(addons.get(zoomId));
			unregisterMapAddon(addons.get(zoomRectId));
		}
	}
357065
private void enableButtons() {
		final int itemCount = this.list.getTable().getItemCount();
		final boolean hasElement = itemCount > 0;
		IStructuredSelection selection;
		if (hasElement) {
			selection = this.list.getStructuredSelection();
			final int selectionCount = selection.size();
			if (selectionCount <= 0 || selectionCount > itemCount) {
				selection = null;
			}
		} else {
			selection = null;
		}
		this.removeButton.setEnabled(selection != null);
		this.clearButton.setEnabled(hasElement);
		if (this.isSortedElements) {
			final Object firstElement = selection != null ? this.list.getTable().getItem(0).getData() : null;
			final Object lastElement = selection != null ? this.list.getTable().getItem(this.list.getTable().getItemCount() - 1).getData() : null;
			final boolean isNotFirst = firstElement != null && selection != null && firstElement != selection.getFirstElement();
			final boolean isNotLast = lastElement != null && selection != null && lastElement != selection.getFirstElement();
			this.moveTopButton.setEnabled(isNotFirst);
			this.moveUpButton.setEnabled(isNotFirst);
			this.moveDownButton.setEnabled(isNotLast);
			this.moveBottomButton.setEnabled(isNotLast);
		}
	}
899374
public void setAveragingEnabled(final boolean ENABLED) {
        if (null == averagingEnabled) {
            _averagingEnabled = ENABLED;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            averagingEnabled.set(ENABLED);
        }
    }
658250
public void setEnabled(boolean enabled) {
        setEnabled(enabled, ENABLED_MASK);
        if (enabled) {
            Log parent;
            if ((parent = mParent) != null) {
                parent.setEnabled(true);
            }
        }
    }
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);
			}
		}
	}