BrightSide Workbench Full Report + Source Code
org.turro.contacts.social.SocialGroupRenderer Class Reference
Inheritance diagram for org.turro.contacts.social.SocialGroupRenderer:
Collaboration diagram for org.turro.contacts.social.SocialGroupRenderer:

Public Member Functions

void render (Listitem listitem, Object obj, int index) throws Exception
 

Detailed Description

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

Definition at line 33 of file SocialGroupRenderer.java.

Member Function Documentation

◆ render()

void org.turro.contacts.social.SocialGroupRenderer.render ( Listitem  listitem,
Object  obj,
int  index 
) throws Exception

Definition at line 36 of file SocialGroupRenderer.java.

36  {
37  if (listitem instanceof Listgroup) {
38  List list = (List) obj;
39  SocialGroupValue sg = (SocialGroupValue) list.iterator().next();
40  listitem.setLabel(I_.byKey(sg.getType().name()));
41  listitem.setValue(obj);
42  } else if (listitem instanceof Listgroupfoot) {
43  listitem.setLabel("Total " + obj + " items");
44  } else {
45  SocialGroupValue data = (SocialGroupValue) obj;
46  listitem.setLabel(data.getName());
47  ((Listcell) listitem.getChildren().iterator().next())
48  .setIconSclass("z-icon-" + data.getType().getIcon());
49  listitem.setStyle("color:" + Colors.cssByName(data.getType().getColor()));
50  listitem.setValue(data);
51  }
52  }
Here is the call graph for this function:

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