19 package org.turro.zul.voteit;
21 import java.io.PrintWriter;
22 import java.io.StringWriter;
23 import org.turro.composer.EntityPathComposer;
24 import org.turro.html.HTMLHelper;
25 import org.turro.voteit.VoteItInfo;
26 import org.turro.voteit.VoteItUtil;
27 import org.zkoss.zk.ui.Component;
28 import org.zkoss.zk.ui.select.annotation.Wire;
29 import org.zkoss.zul.Html;
45 super.doAfterCompose(comp);
47 StringWriter sw =
new StringWriter();
49 html.
startTag(
"span",
"style='color:green'")
53 .
startTag(
"span",
"style='color:orange'")
57 .
startTag(
"span",
"style='color:red'")
61 .
startTag(
"span",
"style='color:gray'")
64 viinfo.setContent(sw.toString());
HTMLGenerator write(String value)
HTMLGenerator startTag(String tag)
static VoteItInfo info(Object entity, IContact contact)
void doAfterCompose(Component comp)
void setEntityPath(String entityPath)