|
void | render (Listitem listitem, Object obj, int index) throws Exception |
|
◆ render()
void org.turro.contacts.social.SocialGroupRenderer.render |
( |
Listitem |
listitem, |
|
|
Object |
obj, |
|
|
int |
index |
|
) |
| throws Exception |
Definition at line 36 of file SocialGroupRenderer.java.
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");
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);
The documentation for this class was generated from the following file: