|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.tool.xml.css.CSSFileWrapper
public class CSSFileWrapper
This Wrapper disables the add and isPersistent(final boolean b) methods.
Constructor Summary | |
---|---|
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). |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSSFileWrapper(CssFile css, boolean b)
css
- the css fileb
- true if this file should be kept forever.Method Detail |
---|
public boolean add(String selector, Map<String,String> props)
CssFile
add
in interface CssFile
selector
- the CSS selectorprops
- the properties for the given selectorpublic List<CssRule> get(Tag t)
CssFile
get
in interface CssFile
t
- the tag for searching rules
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |