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

    Modifier and Type
    Method
    Description
    createSpecialValue(ICSSProperty aProperty, String sValue, boolean bIsImportant)
    Create a special value for the passed property.
  • Method Details

    • 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. Never null.
      sValue - The value to be created. Neither null nor empty.
      bIsImportant - true if the property is important, false if not.
      Returns:
      May be null in which case the default value is created.