18 package org.turro.zkoss.tree;
20 import java.util.Collection;
21 import java.util.HashSet;
22 import org.zkoss.zul.Tree;
23 import org.zkoss.zul.Treeitem;
33 if(listbox !=
null && collection !=
null) {
34 for(Object item : listbox.getItems()) {
35 for(Object obj : collection) {
36 if(item instanceof Treeitem) {
37 if(((Treeitem) item).getValue() !=
null) {
38 if(
equals((V) ((Treeitem) item).getValue(), (V) obj)) {
48 protected abstract boolean equals(V value, V obj);
ValueTreeitemAdapter(Tree listbox, Collection collection)
abstract boolean equals(V value, V obj)