Sets the mode, which should be used to tint the preference's icon.

@param tintMode
The mode, which should be set, as a value of the enum {@link PorterDuff.Mode}. The
mode may not be null
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();
    }
394861
public boolean setEditMode(CmsMessageBundleEditorTypes.EditMode mode) {

        try {
            if ((mode == CmsMessageBundleEditorTypes.EditMode.MASTER) && (null == m_descFile)) {
                m_descFile = LockedFile.lockResource(m_cms, m_desc);
            }
            m_editMode = mode;
        } catch (CmsException e) {
            return false;
        }
        return true;
    }
1301302
public alluxio.grpc.PMode getMode() {
    return mode_ == null ? alluxio.grpc.PMode.getDefaultInstance() : mode_;
  }
882602
public void setMode(final CollapsibleMode mode) {
		getOrCreateComponentModel().mode = CollapsibleMode.SERVER.equals(mode) ? CollapsibleMode.DYNAMIC : mode;
	}
575567
public void setPaginationMode(final PaginationMode paginationMode) {
		getOrCreateComponentModel().paginationMode = paginationMode == null ? PaginationMode.NONE : paginationMode;
	}
1077418
public static @Nullable PorterDuff.Mode parseTintMode(int value,
                                                          @Nullable PorterDuff.Mode defaultMode) {
        switch (value) {
            case 3: return PorterDuff.Mode.SRC_OVER;
            case 5: return PorterDuff.Mode.SRC_IN;
            case 9: return PorterDuff.Mode.SRC_ATOP;
            case 14: return PorterDuff.Mode.MULTIPLY;
            case 15: return PorterDuff.Mode.SCREEN;
            case 16: return PorterDuff.Mode.ADD;
            default: return defaultMode;
        }
    }
908011
public final void setTemplateMode(final TemplateMode templateMode) {
        Validate.notNull(templateMode, "Cannot set a null template mode value");
        // We re-parse the specified template mode so that we make sure we get rid of deprecated values
        this.templateMode = TemplateMode.parse(templateMode.toString());
    }
696640
public synchronized void setMode(IndexerIoMode mode)
   {
      if (this.mode != mode)
      {
         log.info("Indexer io mode=" + mode);
         this.mode = mode;
         for (IndexerIoModeListener listener : listeners)
         {
            listener.onChangeMode(mode);
         }
      }
   }
1056589
public final void setDialogIcon(@DrawableRes final int resourceId) {
        this.dialogIcon = AppCompatResources.getDrawable(getContext(), resourceId);
        this.dialogIconBitmap = null;
        this.dialogIconId = resourceId;
    }
424889
public void setDispatchMode(DispatchMode argMode){
    	if(argMode == null){
    		argMode = DispatchMode.SINGLE_THREAD;
    	}
    	if(argMode == DispatchMode.SINGLE_THREAD){
    		startBackgroundThread();
    	}
    	mode = argMode;
    }
526168
public void setIconOptional( Boolean value) {
    PropertyValue propertyValue = iconOptional(value);
    constantPropertyUsageMap.put(PROPERTY_ICON_OPTIONAL, propertyValue);
    layer.setProperties(propertyValue);
  }
531558
public void setColorSelectMode(int mode) {

        if (!isAttached()) {
            return;
        }
        m_colorA.setResource(m_cpImageBundle.bar_white());
        m_colorB.setResource(m_cpImageBundle.bar_white());
        m_colorC.setResource(m_cpImageBundle.bar_white());
        switch (mode) {
            case SATURATIN:
                m_colorD.setResource(m_cpImageBundle.bar_saturation());
                break;

            case BRIGHTNESS:
                m_colorD.setResource(m_cpImageBundle.bar_brightness());
                break;

            case HUE:
                m_colorD.setResource(m_cpImageBundle.bar_hue());
                break;

            case RED:
                m_colorA.setResource(m_cpImageBundle.bar_red_tl());
                m_colorB.setResource(m_cpImageBundle.bar_red_tr());
                m_colorC.setResource(m_cpImageBundle.bar_red_br());
                m_colorD.setResource(m_cpImageBundle.bar_red_bl());
                break;

            case GREEN:
                m_colorA.setResource(m_cpImageBundle.bar_green_tl());
                m_colorB.setResource(m_cpImageBundle.bar_green_tr());
                m_colorC.setResource(m_cpImageBundle.bar_green_br());
                m_colorD.setResource(m_cpImageBundle.bar_green_bl());
                break;

            case BLUE:
                m_colorA.setResource(m_cpImageBundle.bar_blue_tl());
                m_colorB.setResource(m_cpImageBundle.bar_blue_tr());
                m_colorC.setResource(m_cpImageBundle.bar_blue_br());
                m_colorD.setResource(m_cpImageBundle.bar_blue_bl());
                break;
            default:
                break;
        }
    }
265396
public void setDialogCopyFileMode(String mode) {

        CmsResourceCopyMode copyMode = CmsResource.COPY_AS_NEW;
        if (mode.equalsIgnoreCase(COPYMODE_SIBLING)) {
            copyMode = CmsResource.COPY_AS_SIBLING;
        }
        setDialogCopyFileMode(copyMode);
    }
566576
private void setDefaultValues() {

        //Setup icon
        m_icon.setContentMode(ContentMode.HTML);
        m_icon.setValue(FontOpenCms.WARNING.getHtml());

        //Set Mode option.
        m_mode.setValue("keysAndVariations");
    }
1167168
public void setFillColor(org.kie.dmn.model.api.dmndi.Color value) {
        this.fillColor = value;
    }
563892
public void setMode(String mode) {
                if ("soft".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.SOFT;
                } else if ("mixed".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.MIXED;
                } else if ("hard".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.HARD;
                } else if ("merge".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.MERGE;
                } else if ("keep".equalsIgnoreCase(mode)) {
                        this.mode = ResetType.KEEP;
                } else {
                        this.mode = ResetType.MIXED;
                }
        }
435359
public void setDisplayMode(final DisplayMode displayMode) {
		content.setDisplayMode(displayMode);
		link.setOpenNewWindow(DisplayMode.OPEN_NEW_WINDOW.equals(content.getDisplayMode()));
	}