19 package org.turro.participation;
21 import java.util.List;
22 import org.turro.assistant.ParticipationInfo;
23 import org.turro.zkoss.grid.PagingGrid;
24 import org.turro.zkoss.label.LabelExtended;
25 import org.zkoss.zk.ui.Component;
26 import org.zkoss.zk.ui.ext.AfterCompose;
27 import org.zkoss.zul.Label;
28 import org.zkoss.zul.ListModelList;
29 import org.zkoss.zul.Row;
30 import org.zkoss.zul.Space;
38 private String entityPath;
45 this.entityPath = entityPath;
59 private void addRows() {
66 fillRow(row, participation);
70 setModel(
new ListModelList<Object>(participations));
75 private void fillRow(Row row, IEntityParticipation participation) {
76 row.appendChild(
new LabelExtended().setDateTime(participation.getParticipationDate()));
77 row.appendChild(
new Label(participation.getReason().toString()));
78 Object obj = participation.getParticipator().getLabelCtrl();
79 if(obj instanceof Component) {
80 row.appendChild((Component) obj);
81 if(obj instanceof AfterCompose) {
82 ((AfterCompose) obj).afterCompose();
85 row.appendChild(
new Space());
List< IEntityParticipation > getParticipations()
void setEntityPath(String entityPath)
Rows getRows(boolean create)
void setRowCount(int rows)