19 package org.turro.tags;
21 import java.util.List;
23 import org.turro.elephant.context.Application;
24 import org.turro.entities.IElephantEntity;
25 import org.turro.jpa.grid.RenderPathOnDemand;
26 import org.turro.zkoss.grid.PagingGrid;
27 import org.zkoss.zk.ui.Component;
28 import org.zkoss.zk.ui.ext.AfterCompose;
29 import org.zkoss.zul.ListModelList;
30 import org.zkoss.zul.Row;
31 import org.zkoss.zul.Space;
32 import org.zkoss.zul.Vlayout;
40 private Set<TagItem> selected;
43 this.selected = selected;
58 private void addRows() {
68 setModel(
new ListModelList<Object>(entityPaths));
73 private void fillRow(Row row, IElephantEntity entity) {
74 if(Application.getApplication().isInRole(entity.getRoot() +
"-tagit:list")) {
75 Vlayout vbox =
new Vlayout();
76 row.appendChild(vbox);
77 Object obj = entity.getLabelCtrl();
78 if(obj instanceof Component) {
79 vbox.appendChild((Component) obj);
80 if(obj instanceof AfterCompose) {
81 ((AfterCompose) obj).afterCompose();
84 vbox.appendChild(
new Space());
86 vbox.appendChild((Component) Tags.getControl(entity.getEntity()));
Rows getRows(boolean create)
void setRowCount(int rows)