BrightSide Workbench Full Report + Source Code
org.turro.zul.voteit.VoteItComposer Class Reference
Inheritance diagram for org.turro.zul.voteit.VoteItComposer:
Collaboration diagram for org.turro.zul.voteit.VoteItComposer:

Public Member Functions

void doAfterCompose (Component comp) throws Exception
 
- Public Member Functions inherited from org.turro.composer.EntityPathComposer< E >
void doBeforeComposeChildren (Component comp) throws Exception
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.composer.EntityPathComposer< E >
String entityPath
 
entity
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 35 of file VoteItComposer.java.

Member Function Documentation

◆ doAfterCompose()

void org.turro.zul.voteit.VoteItComposer.doAfterCompose ( Component  comp) throws Exception

Definition at line 44 of file VoteItComposer.java.

44  {
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() + "")
51  .endTag()
52  .write(" - ")
53  .startTag("span", "style='color:orange'")
54  .write(vii.getNocare() + "")
55  .endTag()
56  .write(" - ")
57  .startTag("span", "style='color:red'")
58  .write(vii.getNegative() + "")
59  .endTag()
60  .write(" : ")
61  .startTag("span", "style='color:gray'")
62  .write(vii.getVotes() + " / " + vii.getTotalVotes())
63  .endTag();
64  viinfo.setContent(sw.toString());
65  vigrid.setEntityPath(entityPath);
66  vigrid.afterCompose();
67  }
void setEntityPath(String entityPath)
Definition: VoteItGrid.java:48
Here is the call graph for this function:

The documentation for this class was generated from the following file: