◆ doAfterCompose()
void org.turro.zul.voteit.VoteItComposer.doAfterCompose |
( |
Component |
comp | ) |
throws Exception |
Definition at line 44 of file VoteItComposer.java.
45 super.doAfterCompose(comp);
46 VoteItInfo vii = VoteItUtil.info(
entityPath,
null);
47 StringWriter sw =
new StringWriter();
48 HTMLHelper html =
new HTMLHelper(
new PrintWriter(sw));
49 html.startTag(
"span",
"style='color:green'")
50 .write(vii.getPositive() +
"")
53 .startTag(
"span",
"style='color:orange'")
54 .write(vii.getNocare() +
"")
57 .startTag(
"span",
"style='color:red'")
58 .write(vii.getNegative() +
"")
61 .startTag(
"span",
"style='color:gray'")
62 .write(vii.getVotes() +
" / " + vii.getTotalVotes())
64 viinfo.setContent(sw.toString());
void setEntityPath(String entityPath)
The documentation for this class was generated from the following file: