Class AbstractCssFileBlock

java.lang.Object
com.webfirmframework.wffweb.css.file.AbstractCssFileBlock
All Implemented Interfaces:
CssFileBlock, Serializable, Cloneable
Direct Known Subclasses:
CssBlock, InlineCssBlock

public abstract class AbstractCssFileBlock extends Object implements CssFileBlock
Since:
1.0.0
See Also:
  • Constructor Details

    • AbstractCssFileBlock

      public AbstractCssFileBlock(String selectors)
  • Method Details

    • load

      protected abstract void load(Set<CssProperty> cssProperties)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toCssString

      public String toCssString()
      Returns:
      Since:
      1.0.0
    • toCssString

      public String toCssString(boolean rebuild)
      Parameters:
      rebuild -
      Returns:
      the css string.
      Since:
      1.0.0
    • toCssStringNoSelector

      public String toCssStringNoSelector(boolean rebuild)
      Parameters:
      rebuild -
      Returns:
      the css string without selector.
      Since:
      3.0.7
    • clone

      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • getCssProperties

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

      public 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.