19 package org.turro.activity;
21 import java.util.ArrayList;
22 import java.util.List;
23 import org.zkoss.bind.annotation.BindingParam;
24 import org.zkoss.bind.annotation.Command;
25 import org.zkoss.bind.annotation.ExecutionArgParam;
26 import org.zkoss.bind.annotation.Init;
27 import org.zkoss.bind.annotation.NotifyChange;
28 import org.zkoss.zk.ui.Executions;
29 import org.zkoss.zul.GroupsModel;
30 import org.zkoss.zul.SimpleGroupsModel;
38 private String entityPath;
41 public void init(@ExecutionArgParam(
"entityPath") String entityPath) {
42 if(entityPath !=
null) this.entityPath = entityPath;
43 if(this.entityPath ==
null) {
44 this.entityPath = (String) Executions.getCurrent().getAttribute(
"entityPath");
52 @NotifyChange(
"model")
53 @Command(
"entityPath")
54 public
void setEntityPath(@BindingParam("entityPath") String entityPath) {
55 this.entityPath = entityPath;
58 public GroupsModel<IParticipation, Object, Object>
getModel() {
59 List<List<IParticipation>> data =
new ArrayList<>();
60 List<String> headers =
new ArrayList<>();
61 List<IParticipation> loading =
null;
66 String current = ia.getCatcher().getDescription();
67 if(!(current.equals(group))) {
70 loading =
new ArrayList<>();
78 return new SimpleGroupsModel<>(data, headers);
static ArrayList< IParticipation > getParticipations(String entityPath)
GroupsModel< IParticipation, Object, Object > getModel()
void setEntityPath(@BindingParam("entityPath") String entityPath)
void init(@ExecutionArgParam("entityPath") String entityPath)