Interface CssFile

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean add​(java.lang.String selector, java.util.Map<java.lang.String,​java.lang.String> props)
      Add CSS to this CssFile.
      java.util.List<CssRule> get​(Tag t)
      Return CSS declarations for the given tag.
      boolean isPersistent()  
      void isPersistent​(boolean b)
      Indicates that this file should be kept.
    • Method Detail

      • add

        boolean add​(java.lang.String selector,
                    java.util.Map<java.lang.String,​java.lang.String> props)
        Add CSS to this CssFile.
        Parameters:
        selector - the CSS selector
        props - the properties for the given selector
      • get

        java.util.List<CssRule> get​(Tag t)
        Return CSS declarations for the given tag.
        Parameters:
        t - the tag for searching rules
        Returns:
        a list of maps with all CSS properties for this tag or an empty list if none found.
      • isPersistent

        boolean isPersistent()
        Returns:
        if this CSS file should never be thrown away. Used in CSSFilesImpl#clear
      • isPersistent

        void isPersistent​(boolean b)
        Indicates that this file should be kept.
        Parameters:
        b - true if this file should be kept.