|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.targets.table.html.HtmlStyleCollection
The HtmlStyleCollection is used to create HtmlCellStyles and to convert these cell styles into Cascading StyleSheet code.
The collection reuses previously generated styles to create optimized code.
Constructor Summary | |
HtmlStyleCollection()
Creates a new HtmlStyleCollection. |
Method Summary | |
java.lang.String |
addStyle(HtmlCellStyle style)
Adds the given style to the cache, if not already contained in the cache. |
void |
clear()
Removes all registered styles. |
java.lang.String |
createStyleSheetDefinition(HtmlCellStyle style)
Transforms the given HtmlCellStyle into a Cascading StyleSheet definition. |
java.lang.String |
getBackgroundStyle(TableCellBackground bg)
Transforms the given TableCellBackground into a Cascading StyleSheet definition. |
java.util.Iterator |
getDefinedStyles()
Gets a enumeration of all defined styles. |
boolean |
isRegistered(HtmlCellStyle style)
Checks, whether the given style is contained in the cache. |
java.lang.String |
lookupName(HtmlCellStyle style)
Try to find the registered name of the given style. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HtmlStyleCollection()
Method Detail |
public java.lang.String addStyle(HtmlCellStyle style)
style
- the generated style, that should be added to the style cache.
public boolean isRegistered(HtmlCellStyle style)
style
- the style, that should be checked.
public java.util.Iterator getDefinedStyles()
public java.lang.String lookupName(HtmlCellStyle style)
style
- the style, which should be looked up.
isRegistered(com.jrefinery.report.targets.table.html.HtmlCellStyle)
public void clear()
public java.lang.String createStyleSheetDefinition(HtmlCellStyle style)
style
- the HtmlCellStyle, that should be translated.
public java.lang.String getBackgroundStyle(TableCellBackground bg)
bg
- the background definition, that should be translated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |