| Constructor and Description |
|---|
CSSFileWrapper(CssFile css,
boolean b)
Constructs a CssFile that does not allow adding of new CSS (given you
don't mess with the CssFile provided on construction).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String selector,
Map<String,String> props)
Add CSS to this CssFile.
|
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.
|
public CSSFileWrapper(CssFile css, boolean b)
css - the css fileb - true if this file should be kept forever.public boolean add(String selector, Map<String,String> props)
CssFilepublic List<CssRule> get(Tag t)
CssFilepublic boolean isPersistent()
isPersistent in interface CssFilepublic void isPersistent(boolean b)
CssFileisPersistent in interface CssFileb - true if this file should be kept.Copyright © 2019. All rights reserved.