Removes enum value style name from UIObject unless style is {@code null}.

@param uiObject Object to remove style from
@param style    Style name
169484
public static <E extends Style.HasCssName> void removeEnumStyleName(final UIObject uiObject,
                                                                        final E style) {

        if (style != null && style.getCssName() != null && !style.getCssName().isEmpty()) {
            uiObject.removeStyleName(style.getCssName());
        }
    }
507187
public static <E extends Enum<? extends Style.HasCssName>> E fromStyleName(final String styleName,
                                                                               final Class<E> enumClass,
                                                                               final E defaultValue) {
        return EnumHelper.fromStyleName(styleName, enumClass, defaultValue, true);
    }
407835
function(node, name) {
                var value = this.getStyle(node.getType() + "-" + name, node);
                return value !== null ? value : this.getStyle(name, node);
            }
471739
public JFreeChartRender setStyle(int style) {
        switch (style) {
            case JFreeChartRender.STYLE_THESIS:
                return this.setBaseShapesVisible(true).
                        setBaseShapesFilled(false).
                        setBaseLinesVisible(false).
                        setLegendItemFont(new Font("Dialog", Font.PLAIN, 9)).
                        setBackgroundPaint(Color.white).
                        setGridPaint(Color.gray).
                        setInsertLast(false).
                        removeLegend();
            case JFreeChartRender.STYLE_THESIS_LEGEND:
                return this.setBaseShapesVisible(true).
                        setBaseShapesFilled(false).
                        setBaseLinesVisible(false).
                        setLegendItemFont(new Font("Dialog", Font.PLAIN, 9)).
                        setBackgroundPaint(Color.white).
                        setGridPaint(Color.gray).
                        setInsertLast(false);
            default:
                return this;
        }
    }
608166
public void setValue(String newStyle) {

        for (UIObject ui : m_uis) {
            if (m_style != null) {
                ui.removeStyleName(m_style);
            }
            if (newStyle != null) {
                ui.addStyleName(newStyle);
            }
        }
        m_style = newStyle;
    }
604624
function ( obj, key, value ) {
		key = string.toCamelCase( key );

		if ( value !== undefined ) {
			obj.style[key] = value;
			return obj;
		}
		else {
			return obj.style[key];
		}
	}
1346672
public void setUsernameStyle(@UsernameStyle int style) {
        if (style == EMAIL || !usernameRequired) {
            setDataType(DataType.EMAIL);
        } else if (style == USERNAME) {
            setDataType(DataType.USERNAME);
            String errorDescription = isCustomDatabase ? getResources().getString(R.string.com_auth0_lock_input_error_username_empty) :
                    getResources().getString(R.string.com_auth0_lock_input_error_username, minUsernameLength, maxUsernameLength);
            setErrorDescription(errorDescription);
        } else if (style == DEFAULT) {
            setDataType(DataType.USERNAME_OR_EMAIL);
        }
    }
509199
function(style, stylename)
	{
		if (style != null && stylename != null)
		{
			var tokens = style.split(';');
			var pos = 0;
			
			for (var i = 0; i < tokens.length; i++)
			{
				if (tokens[i] == stylename)
				{
					return pos;
				}
				
				pos += tokens[i].length + 1;
			}
		}

		return -1;
	}
324643
public void unbind(ValidationObject validationObject)
    {
        Integer id = System.identityHashCode(validationObject);
    	m_unbinding.add(id);
        List<ProposedValue> proposedValues = new ArrayList<ProposedValue>();
    	ProxyObject proxyObject = getSession().getProxyObject(validationObject);
    	for (ProxyField proxyField: proxyObject.getFieldMap().values())
    	{
    		if (!proxyField.isDerived())
    		{
    			// Figure out if this property contains a list or a known object type
    			// we want to ignore those and only reset primitive objects (long, String etc)
    			Class<?> clazz = proxyField.getPropertyMetadata().getGetMethod().getReturnType();
       			if (clazz.isAssignableFrom(List.class))
    			{
    				continue;
    			}
       			if (getSession().getValidationEngine().getClassMetadata(clazz) != null)
    			{
    				continue;
    			}
    			RuleProxyField ruleProxyField = getRuleProxyField(proxyField);
    			if (ruleProxyField.isDifferent(proxyField.getInitialValue()))
    			{
    				ProposedValue pv = new ProposedValue(ruleProxyField,proxyField.getInitialValue());
    				proposedValues.add(pv);
    			}
    		}    		
    	}
        setValues(proposedValues);
        m_boundObjects.remove(id);
    	m_unbinding.remove(id);
        List<String> kill = new ArrayList<String>();
        for (Map.Entry<String, RuleContext> entry: m_ruleContextsMap.entrySet())
        {
        	if (entry.getValue().getValidationObject() == validationObject)
        	{
        		kill.add(entry.getKey());
        	}
        }

        for (String key: kill)
        {
        	RuleContext rc = m_ruleContextsMap.remove(key);
        	rc.reset();
        }
    }
567960
function( name ) {
			// Removes the specified property from the current style object.
			var $ = this.$.style;

			// "removeProperty" need to be specific on the following styles.
			if ( !$.removeProperty && ( name == 'border' || name == 'margin' || name == 'padding' ) ) {
				var names = expandedRules( name );
				for ( var i = 0 ; i < names.length ; i++ )
					this.removeStyle( names[ i ] );
				return;
			}

			$.removeProperty ? $.removeProperty( name ) : $.removeAttribute( CKEDITOR.tools.cssStyleToDomStyle( name ) );

			// Eventually remove empty style attribute.
			if ( !this.$.style.cssText )
				this.removeAttribute( 'style' );
		}
1038132
public final void setStyle(String stylePrefix) {
        requireNonNull(stylePrefix);
        MODEL.finer(getName() + ": setting style to: " + style); //$NON-NLS-1$
        styleProperty().set(stylePrefix);
    }
38307
void clearMoveAnimationStyles(Element placeHolder, CmsAttributeValueView reference) {

        placeHolder.removeFromParent();
        reference.getElement().getParentElement().getStyle().clearPosition();
        reference.getElement().getStyle().clearPosition();
        reference.getElement().getStyle().clearWidth();
        reference.getElement().getStyle().clearZIndex();
        reference.showButtons();
    }
1214633
public function removeTextStyle(string $style)
    {
        if (!isset(self::$supportedTextStyles[$style])) {
            throw new InvalidArgumentException("Invalid text style \"$style\"");
        }

        if (($index = array_search($style, $this->textStyles)) !== false) {
            unset($this->textStyles[$index]);
        }
    }
800633
public static <T extends Enum<T>> void enuum(String value, Object object, PropertyInterface property) {
		@SuppressWarnings("unchecked")
		Class<T> enumClass = (Class<T>) property.getClazz();
		List<Enum> values = (List<Enum>) EnumUtils.valueList(enumClass);
		for (Enum enumValue : values) {
			if (enumValue.name().equalsIgnoreCase(value)) {
				property.setValue(object, enumValue);
				return;
			}
		}
		Object createdEnum = InvalidValues.createInvalidEnum(enumClass, value);
		property.setValue(object, createdEnum);
	}
722986
@Override
    public ExternalStylesheetDescriptor deleteData(String name) {
        final IStylesheetDescriptor stylesheetDescriptor =
                this.stylesheetDescriptorDao.getStylesheetDescriptorByName(name);
        if (stylesheetDescriptor == null) {
            return null;
        }

        ExternalStylesheetDescriptor result = convert(stylesheetDescriptor);
        this.stylesheetDescriptorDao.deleteStylesheetDescriptor(stylesheetDescriptor);
        return result;
    }
562713
function(style) {
        for (var c=0;c<this.cells.length;++c) {
            Dom.removeClass(this.cells[c],style);
        }
    }
490317
public void removeByKey(Object key)
    {
        Object value = keyTable.remove(key);
        if (value != null)
        {
            valueTable.remove(value);
        }
    }