Enables or disables the OK button.<p>

@param enabled <code>true</code> to enable the button
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));
        }
    }
148748
public void setNewEnabled(boolean enabled, String disabledReason) {

        if (enabled) {
            m_newMenuButton.enable();
        } else {
            m_newMenuButton.disable(disabledReason);
        }
    }
983404
public void setOkButtonEnabled(final boolean enabled) {

        Scheduler.get().scheduleDeferred(new ScheduledCommand() {

            /**
             * @see com.google.gwt.core.client.Scheduler.ScheduledCommand#execute()
             */
            public void execute() {

                // The event handling of GWT gets confused if we don't execute this as a scheduled command
                getOkButton().setDown(false);
                getOkButton().setEnabled(enabled);
            }
        });

    }
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();
    }
921910
public void setEnabledClass(java.lang.String enabledClass) {
        getStateHelper().put(PropertyKeys.enabledClass, enabledClass);
    }
496906
public static void setEnabled(Element element, boolean enabled) {
        element.setPropertyBoolean("disabled", !enabled);
	setStyleName(element, "disabled", !enabled);
    }
947410
public void setViewEnabled(boolean enable) {
        if (enable && mView == null) {
            mView = makeView();
        }
        if (mView != null) {
            mView.setViewEnabled(enable);
        }
    }
653045
private static void enableView(final View view, final boolean enable) {
    view.setEnabled(enable);
    view.setAlpha(enable ? 1f : 0.1f);
  }
755949
protected void createEnabledButton(Composite parent) throws CoreException
	{
		fEnabledButton = createCheckButton(parent, "Enable");
		fEnabledButton.setSelection(getBreakpoint().isEnabled());
	}
114161
public boolean setEnabled(String label, boolean enabled) {
        return enabled ? labels.contains(label) && disabled.remove(label)
                       : labels.contains(label) && disabled.add(label);
    }
204515
@Override
    public void setEnabled(boolean b)
    {
        itineraryPanel.setEnabled(b);
        strategyPanel.setEnabled(b);
        executionPanel.setEnabled(b);
        super.setEnabled(b);
    }
191977
private void setConditionEnabled(boolean enabled)
	{
		fConditionEditor.setEnabled(enabled);
		fSuspendWhenLabel.setEnabled(enabled);
		fConditionIsTrue.setEnabled(enabled);
		fConditionHasChanged.setEnabled(enabled);
	}
755726
public void enableDefaultButtons(boolean enabled) {

        if (enabled) {
            m_itemsRight.addComponent(m_contextMenu, 0);
            m_itemsRight.addComponent(m_favButton, 1);
            m_itemsRight.addComponent(m_quickLaunchDropDown, 2);
        } else {
            m_itemsRight.removeComponent(m_contextMenu);
            m_itemsRight.removeComponent(m_favButton);
            m_itemsRight.removeComponent(m_quickLaunchDropDown);
        }
        updateFoldingThreshhold();
    }
1180448
public void setBoardEnabled(boolean enable) {
        if (mEnabled != enable) {
            if (DBG) Log.v(TAG, "enable - " + enable);
            mEnabled = enable;
        }
    }
592482
public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);
		if (dateEditor != null) {
			dateEditor.setEnabled(enabled);
			calendarButton.setEnabled(enabled);
		}
	}
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());
        }
    }
1202253
void setOkButtonEnabled() {

        m_ok.setEnabled(true);
        m_ok.setCaption(CmsVaadinUtils.getMessageText(org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_CLOSE_0));
        m_ok.removeClickListener(m_okClickListener);
        m_ok.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 5637556711524961424L;

            public void buttonClick(ClickEvent event) {

                closeDailog(true);
            }
        });
    }