19 package org.turro.zul.groupit;
21 import java.util.Collection;
22 import org.turro.command.CommandUtil;
23 import org.turro.contacts.GroupIt;
24 import org.turro.groupit.GroupItUtil;
25 import org.turro.zkoss.grid.PagingGrid;
26 import org.zkoss.zk.ui.Component;
27 import org.zkoss.zul.ListModelList;
28 import org.zkoss.zul.Row;
29 import org.zkoss.zul.RowRenderer;
30 import org.zkoss.zul.Space;
39 private String category;
40 private boolean exact;
46 this.groupIt = groupIt;
47 this.category = groupIt !=
null ? groupIt.
getCategory() :
null;
51 this.category = category;
69 private void addRows() {
71 (groupIt !=
null ? groupIt.
getPathName() :
""), category, exact);
73 setRowRenderer(
new RowRenderer<Object>() {
75 public void render(Row row, Object data,
int index)
throws Exception {
76 if(data instanceof String) {
78 row.appendChild(comp ==
null ?
new Space() : comp);
83 setModel(
new ListModelList<Object>(list));
static HtmlBasedComponent getLink(Object entity)
static Collection< String > getPathsFromGroup(String path, String selectedGroup, String selectedCategory)
Rows getRows(boolean create)
void setRowCount(int rows)
void setExact(boolean exact)
void setGroupIt(GroupIt groupIt)
void setCategory(String category)