Interface ICSSPropertyCustomizer
-
- All Known Implementing Classes:
AbstractCSSPropertyCustomizer,CSSPropertyCustomizerBorderBottomLeftRadius,CSSPropertyCustomizerBorderBottomRightRadius,CSSPropertyCustomizerBorderRadius,CSSPropertyCustomizerBorderTopLeftRadius,CSSPropertyCustomizerBorderTopRightRadius,CSSPropertyCustomizerOpacity
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ICSSPropertyCustomizer
A special customizer that can be assigned to CSS properties to modify their default behavior. This can be used to add browser-specific values.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICSSValuecreateSpecialValue(ICSSProperty aProperty, String sValue, boolean bIsImportant)Create a special value for the passed property.
-
-
-
Method Detail
-
createSpecialValue
@Nullable ICSSValue createSpecialValue(@Nonnull ICSSProperty aProperty, @Nonnull @Nonempty String sValue, boolean bIsImportant)
Create a special value for the passed property. For example if the property is "border-radius" than the browser specific values like "-moz-border-radius" and "-webkit-border-radius" should be emitted as well.- Parameters:
aProperty- The CSS property the fuzz is all about. Nevernull.sValue- The value to be created. Neithernullnor empty.bIsImportant-trueif the property is important,falseif not.- Returns:
- May be
nullin which case the default value is created.
-
-