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 file
b
- true if this file should be kept forever.
public boolean add(String selector, Map<String,String> props)
CssFile
public List<CssRule> get(Tag t)
CssFile
public boolean isPersistent()
isPersistent
in interface CssFile
public void isPersistent(boolean b)
CssFile
isPersistent
in interface CssFile
b
- true if this file should be kept.
Copyright © 2016. All rights reserved.