Class AbstractCssFileBlock

  • All Implemented Interfaces:
    CssFileBlock, java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    CssBlock


    public abstract class AbstractCssFileBlock
    extends java.lang.Object
    implements CssFileBlock
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • AbstractCssFileBlock

        public AbstractCssFileBlock​(java.lang.String selectors)
    • Method Detail

      • load

        protected abstract void load​(java.util.Set<CssProperty> cssProperties)
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object
      • toCssString

        public java.lang.String toCssString​()
        Returns:
        Since:
        1.0.0
      • toCssString

        public java.lang.String toCssString​(boolean rebuild)
        Parameters:
        rebuild -
        Returns:
        the css string.
        Since:
        1.0.0
      • clone

        public AbstractCssFileBlock clone​()
                                   throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • getCssProperties

        public java.util.Set<CssProperty> getCssProperties​()
        Returns:
        the cssProperties
        Since:
        1.0.0
      • getSelectors

        public java.lang.String getSelectors​()
        Returns:
        the selectors
        Since:
        1.0.0
      • isExcludeCssBlock

        public boolean isExcludeCssBlock​()
        Returns:
        the excludeCssBlock true if the css block has been excluded, i.e. it will not be contained in the generated css.
      • setExcludeCssBlock

        protected void setExcludeCssBlock​(boolean excludeCssBlock)
        Parameters:
        excludeCssBlock - the excludeCssBlock to set. If it is set to true, then this css block will not be contained in the generated css.