◆ RegistryHTMLFormatter()
org.turro.registry.RegistryHTMLFormatter.RegistryHTMLFormatter |
( |
HTMLGenerator |
html, |
|
|
Changes |
changes |
|
) |
| |
◆ generate()
HTMLGenerator org.turro.registry.RegistryHTMLFormatter.generate |
( |
| ) |
|
Definition at line 38 of file RegistryHTMLFormatter.java.
39 ChangeCategory last =
null;
40 changes.clearEquals();
41 html.
startTable(
"width='100%' style='width:100%'");
43 for(IChange c : changes) {
44 if(!c.getCategory().equals(last)) {
45 if(!Strings.isBlank(c.getCategory().getCaption())) {
46 last = c.getCategory();
47 html.
startTag(
"div",
" style='border-bottom: solid 1px #eeeeee;font-weight:bold; margin-top:10px;'")
48 .
write(c.getCategory().getCaption())
52 if(Strings.isBlank(c.getLabel()) && c.isOnlyNew()) {
54 .
write(StringParser.toHTML(c.getNewValueString()))
56 }
else if(c.isOnlyNew()) {
58 .
write(StringParser.toHTML(c.getLabel()))
60 .
write(StringParser.toHTML(c.getNewValueString()))
64 .
write(StringParser.toHTML(c.getLabel()))
66 .
write(StringParser.toHTML(c.getOldValueString()))
68 .
write(StringParser.toHTML(c.getNewValueString()))
HTMLGenerator endAllTags()
HTMLGenerator write(String value)
HTMLGenerator startTag(String tag)
HTMLGenerator startTableCol(String attributes)
HTMLGenerator startTable(String attributes)
The documentation for this class was generated from the following file: