19 package org.turro.zul.groupit;
21 import org.turro.contacts.GroupIt;
22 import org.zkoss.zk.ui.ext.AfterCompose;
23 import org.zkoss.zul.Tree;
24 import org.zkoss.zul.Treechildren;
25 import org.zkoss.zul.Treeitem;
31 public class GroupItTree extends Tree implements AfterCompose {
33 private Treechildren children;
34 private String category, entityPath;
46 this.category = category;
47 children.getChildren().clear();
56 this.entityPath = entityPath;
61 children.appendChild(grp);
75 setSelectedItem(
null);
77 for(Treeitem ti : getItems()) {
78 if(ti.getValue() instanceof
GroupIt) {
79 if(((
GroupIt) ti.getValue()).getId().equals(group.
getId())) {
85 setSelectedItem(
null);
97 private void addChildrenSpace() {
98 children =
new Treechildren();
99 appendChild(children);
103 for(Object o : children.getChildren()) {
void setCategory(String category)
GroupIt getSelectedGroup()
void setEntityPath(String entityPath)
GroupItItem addGroup(GroupIt group, boolean loadOnDemand)
void changeSelectedGroup(GroupIt group)
void setSelectedGroup(GroupIt group)