Constructor | 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 | 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.
|
public CSSFileWrapper(CssFile css, boolean b)
css
- the css fileb
- true if this file should be kept forever.public boolean add(java.lang.String selector, java.util.Map<java.lang.String,java.lang.String> props)
CssFile
public java.util.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 © 1998–2018. All rights reserved.