StyleAttrCSSResolverpublic interface CSSResolver
| Modifier and Type | Method | Description |
|---|---|---|
void |
addCss(CssFile file) |
Add a CssFile
|
void |
addCss(java.lang.String content,
boolean isPersistent) |
Add a piece of CSS code.
|
void |
addCss(java.lang.String content,
java.lang.String charSet,
boolean isPersistent) |
Add a piece of CSS code.
|
void |
addCssFile(java.lang.String href,
boolean isPersistent) |
Add a
|
CSSResolver |
clear() |
|
void |
resolveStyles(Tag t) |
This method should resolve css, meaning, it will look at the css and
retrieve relevant css rules for the given tag.
|
void |
setFileRetrieve(FileRetrieve retrieve) |
The
FileRetrieve implementation to use in addCss(String, boolean). |
void resolveStyles(Tag t)
Tag.setCSS(java.util.Map).t - the tag.void addCss(java.lang.String content,
java.lang.String charSet,
boolean isPersistent)
throws CssResolverException
content - the CSScharSet - a charsetisPersistent - true if the added css should not be deleted on a call to clearCssResolverException - thrown if something goes wrongvoid addCssFile(java.lang.String href,
boolean isPersistent)
throws CssResolverException
href - the link to the css file ( an absolute uri )isPersistent - true if the added css should not be deleted on a call to clearCssResolverException - thrown if something goes wrongvoid addCss(java.lang.String content,
boolean isPersistent)
throws CssResolverException
content - the content to parse to cssisPersistent - true if the added css should not be deleted on a call to clearCssResolverException - thrown if something goes wrongvoid addCss(CssFile file)
file - the CssFilevoid setFileRetrieve(FileRetrieve retrieve)
FileRetrieve implementation to use in addCss(String, boolean).retrieve - the retrieve to setCSSResolver clear() throws CssResolverException
CssResolverException - thrown if something goes wrongCopyright © 1998–2018. All rights reserved.