|
||||||||||
| 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 | |
|---|---|
void |
add(String selector,
Map<String,String> props)
Add CSS to this CssFile. |
Map<String,String> |
get(String selector)
Return CSS for the given selector. |
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 void add(String selector,
Map<String,String> props)
CssFile
add in interface CssFileselector - the CSS selectorprops - the properties for the given selectorpublic Map<String,String> get(String selector)
CssFile
get in interface CssFileselector - the selector to look for
public boolean isPersistent()
isPersistent in interface CssFilepublic void isPersistent(boolean b)
CssFile
isPersistent in interface CssFileb - true if this file should be kept.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||