Sets design mode status for this component and all its children.

@param designMode The design mode flag.
501090
public void setDesignMode(boolean designMode) {
        this.designMode = designMode;
        
        for (ElementBase child : children) {
            child.setDesignMode(designMode);
        }
        
        updateState();
    }
929438
public void setMode(final String mode) {
        this.mode = Strings.toLowerCase(mode);
        if (mode == null || !MODES.contains(mode)) {
            throw new IllegalArgumentException("Invalid mode [" + mode + "]");
        }
    }
468560
public static function setSqlMode(string $sqlMode): void
  {
    $sql = sprintf('set sql_mode = %s', self::$dl->quoteString($sqlMode));

    self::executeNone($sql);
  }
88989
public void setSubsitemapCreationMode(String mode) {

        try {
            m_subsitemapCreationMode = SubsitemapCreationMode.valueOf(mode);
        } catch (Exception e) {
            LOG.warn("Invalid value for subsitemap creation mode was ignored: " + mode);
        }
    }
126558
public void setGradationColor(GradationMode2D mode, ColorSet colorSet1, ColorSet colorSet2) {
        setGradationColor(mode, new RGBColor(colorSet1), new RGBColor(colorSet2));
    }
392970
public void setBoardEnabled(boolean enable) {
        if (enable && mBoard == null) {
            mBoard = makeBoard();
        }
        if (mBoard != null) {
            mBoard.setBoardEnabled(enable);
        }
    }
625499
private void initMode(Map<String, String> agentConfig) {
        String mode = agentConfig.get("mode");
        if (mode != null && !mode.equals("start") && !mode.equals("stop")) {
            throw new IllegalArgumentException("Invalid running mode '" + mode + "'. Must be either 'start' or 'stop'");
        }
        isStopMode = "stop".equals(mode);
    }
1056502
public SM2 setMode(SM2Mode mode) {
		this.mode = mode;
		if (null != this.engine) {
			this.engine.setMode(mode);
		}
		return this;
	}
985868
public void setSelectionModeEnabled(boolean selectionModeEnabled) {
        if (!selectionModeEnabled) {
            // TODO fix double iteration over tree
            deselectAll();
        }
        mSelectionModeEnabled = selectionModeEnabled;

        for (TreeNode node : mRoot.getChildren()) {
            toggleSelectionMode(node, selectionModeEnabled);
        }

    }
85310
public void setEditorModeInSession(final EditorMode editorMode) {

        CmsRpcAction<Void> action = new CmsRpcAction<Void>() {

            @Override
            public void execute() {

                getService().setEditorMode(editorMode, this);
            }

            @Override
            protected void onResponse(Void result) {

                // nothing to do

            }
        };
        action.execute();
    }
800345
@Override
    protected void afterParentChanged(ElementBase oldParent) {
        if (getParent() != null) {
            if (!getDefinition().isInternal()) {
                bind();
            }
            
            setDesignMode(getParent().isDesignMode());
        }
    }
496906
public static void setEnabled(Element element, boolean enabled) {
        element.setPropertyBoolean("disabled", !enabled);
	setStyleName(element, "disabled", !enabled);
    }
435359
public void setDisplayMode(final DisplayMode displayMode) {
		content.setDisplayMode(displayMode);
		link.setOpenNewWindow(DisplayMode.OPEN_NEW_WINDOW.equals(content.getDisplayMode()));
	}
347460
public void setEditMode(EditMode currentMode) {
		super.setEditMode(currentMode);
		if (controller != null) {
			controller.setEditMode(currentMode);
		}
	}
239012
public final void setDialogIconTintMode(@NonNull final PorterDuff.Mode mode) {
        Condition.INSTANCE.ensureNotNull(mode, "The dialog icon tint mode may not be null");
        this.dialogIconTintMode = mode;
    }
206880
public function setConditionMode(string $conditionMode)
    {
        if (!in_array($conditionMode, [self::CONDITION_MODE_AND, self::CONDITION_MODE_OR], true)) {
            throw Exception\InvalidArgumentException::format(
                'Invalid condition mode supplied to %s: expecting one of (%s), \'%s\' given',
                __METHOD__, Debug::formatValues([self::CONDITION_MODE_AND, self::CONDITION_MODE_OR]), $conditionMode
            );
        }

        $this->conditionMode = $conditionMode;

        return $this;
    }
916900
protected void setModeVisible(boolean visible) {

        Style style = m_modeLabel.getElement().getParentElement().getStyle();
        if (visible) {
            style.clearDisplay();
        } else {
            style.setDisplay(Display.NONE);
        }
    }