Sets the content display mode. Note that the window attributes will be ignored if the mode is changed to
something other than {@link WContent.DisplayMode#OPEN_NEW_WINDOW}.

@param displayMode the content display mode to set.
435359
public void setDisplayMode(final DisplayMode displayMode) {
		content.setDisplayMode(displayMode);
		link.setOpenNewWindow(DisplayMode.OPEN_NEW_WINDOW.equals(content.getDisplayMode()));
	}
851462
private static void prepareMode(Mode providedMode) {
        final String applicationMode = System.getProperty(Key.APPLICATION_MODE.toString());
        if (StringUtils.isNotBlank(applicationMode)) {
            switch (applicationMode.toLowerCase(Locale.ENGLISH)) {
                case "dev"  : mode = Mode.DEV;
                break;
                case "test" : mode = Mode.TEST;
                break;
                default     : mode = Mode.PROD;
                break;
            }
        } else {
            mode = providedMode;
        }
    }
1259207
public void setDisplayerSetting( DisplayerAttributeDef displayerAttributeDef, String value ) {
        settings.put(getSettingPath(displayerAttributeDef), value);
    }
531490
private static void setMode(Resource file, int mode) throws ApplicationException {
	if (mode == -1 || SystemUtil.isWindows()) return;
	try {
	    file.setMode(mode);
	    // FileUtil.setMode(file,mode);
	}
	catch (IOException e) {
	    throw new ApplicationException("can't change mode of file " + file, e.getMessage());
	}
    }
365187
public void setDisplayMode(int width, int height, boolean fullscreen) throws SlickException {
		if ((this.width == width) && (this.height == height) && (isFullscreen() == fullscreen)) {
			return;
		}
		
		try {
			targetDisplayMode = null;
			if (fullscreen) {
				DisplayMode[] modes = Display.getAvailableDisplayModes();
				int freq = 0;
				
				for (int i=0;i<modes.length;i++) {
					DisplayMode current = modes[i];
					
					if ((current.getWidth() == width) && (current.getHeight() == height)) {
						if ((targetDisplayMode == null) || (current.getFrequency() >= freq)) {
							if ((targetDisplayMode == null) || (current.getBitsPerPixel() > targetDisplayMode.getBitsPerPixel())) {
								targetDisplayMode = current;
								freq = targetDisplayMode.getFrequency();
							}
						}

						// if we've found a match for bpp and frequence against the 
						// original display mode then it's probably best to go for this one
						// since it's most likely compatible with the monitor
						if ((current.getBitsPerPixel() == originalDisplayMode.getBitsPerPixel()) &&
						    (current.getFrequency() == originalDisplayMode.getFrequency())) {
							targetDisplayMode = current;
							break;
						}
					}
				}
			} else {
				targetDisplayMode = new DisplayMode(width,height);
			}
			
			if (targetDisplayMode == null) {
				throw new SlickException("Failed to find value mode: "+width+"x"+height+" fs="+fullscreen);
			}
			
			this.width = width;
			this.height = height;

			Display.setDisplayMode(targetDisplayMode);
			Display.setFullscreen(fullscreen);

			if (Display.isCreated()) {
				initGL();
				enterOrtho();
			} 
			
			if (targetDisplayMode.getBitsPerPixel() == 16) {
				InternalTextureLoader.get().set16BitMode();
			}
		} catch (LWJGLException e) {
			throw new SlickException("Unable to setup mode "+width+"x"+height+" fullscreen="+fullscreen, e);
		}
		
		getDelta();
	}
917882
public void setMode(final MenuMode mode) {
		// mode server mapped to mode dynamic as per https://github.com/BorderTech/wcomponents/issues/687
		getOrCreateComponentModel().mode = MenuMode.SERVER.equals(mode) ? MenuMode.DYNAMIC : mode;
	}
882602
public void setMode(final CollapsibleMode mode) {
		getOrCreateComponentModel().mode = CollapsibleMode.SERVER.equals(mode) ? CollapsibleMode.DYNAMIC : mode;
	}
791352
public void setOpenerVisible(boolean visible) {

        if (visible) {
            m_opener.removeStyleName(OpenCmsTheme.BUTTON_INVISIBLE);
        } else {
            m_opener.addStyleName(OpenCmsTheme.BUTTON_INVISIBLE);
        }
    }
1348454
public void setDisplayFormat(DisplayFormat format) {
        getStorageHandler().getStorageEngine().setConfigEntry("longmode", format.toString());
        displayFormat = format;
    }
813833
void setDisplayNone(boolean displayNone) {

        if (displayNone) {
            getElement().getStyle().setDisplay(Display.NONE);
        } else {
            getElement().getStyle().clearDisplay();
        }
    }
483097
public final void setIconTintMode(@NonNull final PorterDuff.Mode tintMode) {
        Condition.INSTANCE.ensureNotNull(tintMode, "The tint mode may not be null");
        this.tintMode = tintMode;
        adaptIconTint();
    }
947410
public void setViewEnabled(boolean enable) {
        if (enable && mView == null) {
            mView = makeView();
        }
        if (mView != null) {
            mView.setViewEnabled(enable);
        }
    }
1330027
public void setContent(final WComponent content) {
		WindowModel model = getOrCreateComponentModel();

		// If the previous content had been wrapped, then remove it from the wrapping WApplication.
		if (model.wrappedContent != null && model.wrappedContent != model.content) {
			model.wrappedContent.removeAll();
		}

		model.content = content;

		// Wrap content in a WApplication
		if (content instanceof WApplication) {
			model.wrappedContent = (WApplication) content;
		} else {
			model.wrappedContent = new WApplication();
			model.wrappedContent.add(content);
		}

		// There should only be one content.
		holder.removeAll();
		holder.add(model.wrappedContent);
	}
96132
public void setTextVisible(final boolean VISIBLE) {
        if (null == textVisible) {
            _textVisible = VISIBLE;
            fireUpdateEvent(VISIBILITY_EVENT);
        } else {
            textVisible.set(VISIBLE);
        }
    }
459640
public void setScreenImage(byte[] content) {
        logger.entering(content);
        this.screenImage = Arrays.copyOf(content, content.length);
        logger.exiting();
    }
915010
@Override
    public void setDesignMode(boolean designMode) {
        super.setDesignMode(designMode);

        for (ElementTrigger trigger : triggers) {
            trigger.setDesignMode(designMode);
        }

        setDesignContextMenu(designMode ? DesignContextMenu.getInstance().getMenupopup() : null);
        mask.update();
    }
995565
public void setColorSelectMode(int mode) {

        if (!isAttached()) {
            return;
        }

        switch (mode) {
            case CmsSliderBar.SATURATIN:
                m_colorUnderlay.setResource(m_cpImageBundle.map_saturation());
                m_colorOverlay.setResource(m_cpImageBundle.map_saturation_overlay());
                break;

            case CmsSliderBar.BRIGHTNESS:
                m_colorUnderlay.setResource(m_cpImageBundle.map_white());
                m_colorOverlay.setResource(m_cpImageBundle.map_brightness());
                break;

            case CmsSliderBar.HUE:
                m_colorUnderlay.setResource(m_cpImageBundle.map_white());
                m_colorOverlay.setResource(m_cpImageBundle.map_hue());
                setOverlayOpacity(100);
                break;

            case CmsSliderBar.RED:
                m_colorOverlay.setResource(m_cpImageBundle.map_red_max());
                m_colorUnderlay.setResource(m_cpImageBundle.map_red_min());
                break;

            case CmsSliderBar.GREEN:
                m_colorOverlay.setResource(m_cpImageBundle.map_green_max());
                m_colorUnderlay.setResource(m_cpImageBundle.map_green_min());
                break;

            case CmsSliderBar.BLUE:
                m_colorOverlay.setResource(m_cpImageBundle.map_blue_max());
                m_colorUnderlay.setResource(m_cpImageBundle.map_blue_min());
                break;
            default:
                break;
        }
    }