19 package org.turro.publication.zul.tree;
21 import java.util.Collection;
22 import org.turro.i18n.I_;
23 import org.turro.publication.entity.PublicationCategory;
24 import org.turro.publication.util.PublicationCategories;
25 import org.zkoss.zk.ui.ext.AfterCompose;
26 import org.zkoss.zul.Treechildren;
27 import org.zkoss.zul.Treeitem;
35 private Treechildren children;
40 setLabel(category ==
null ?
I_.
get(
"All") : category.
getName());
41 setTooltiptext(getLabel());
59 if(children !=
null) {
60 children.getChildren().clear();
71 children.appendChild(cat);
76 private void fillCategory() {
77 if(children !=
null && children.getChildren().isEmpty()) {
84 private void addChildrenSpace() {
86 children =
new Treechildren();
87 appendChild(children);
static String get(String msg)
static List< PublicationCategory > getPublicationCategories()
PubCategoryItem addCategory(PublicationCategory category)
PubCategoryItem(PublicationCategory category)
Collection< PublicationCategory > getCategoryChildren()
PubCategoryTree getTree()
PublicationCategory getCategory()