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

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 StarItComposer.java.

Member Function Documentation

◆ doAfterCompose()

void org.turro.zul.starit.StarItComposer.doAfterCompose ( Component  comp) throws Exception

Definition at line 44 of file StarItComposer.java.

44  {
45  super.doAfterCompose(comp);
46  StarsInfo si = StarItUtil.stars(entityPath);
47  StringWriter sw = new StringWriter();
48  HTMLHelper html = new HTMLHelper(new PrintWriter(sw));
49  html.startTag("span", "style='color:green'")
50  .write(si.getStars() + "")
51  .endTag()
52  .write(" : ")
53  .startTag("span", "style='color:gray'")
54  .write(si.count + "")
55  .endTag();
56  siinfo.setContent(sw.toString());
57  sigrid.setEntityPath(entityPath);
58  sigrid.afterCompose();
59  }
void setEntityPath(String entityPath)
Definition: StarItGrid.java:47
Here is the call graph for this function:

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