18 package org.turro.zkoss.tree;
20 import java.util.Collection;
21 import java.util.HashSet;
22 import org.zkoss.zul.Treeitem;
32 if(collection !=
null) {
33 for(Object obj : collection) {
34 if(obj instanceof Treeitem) {
35 if(!selected || (selected && ((Treeitem) obj).isSelected())) {
36 if(((Treeitem) obj).getValue() !=
null) {
37 add((V) ((Treeitem) obj).getValue());
TreeitemValueAdapter(Collection collection, boolean selected)