d.value = item.getID();
d.title = item.toString();
d.canBeSelected = true;
if(item instanceof DirectoryItemRecursive) {
DirectoryItemRecursive thisItem = (DirectoryItemRecursive)item;
Selector ii = thisItem.getItems();
if(ii.size() > 0) {
LinkedList<ChoosePanelData> ll = new LinkedList<ChoosePanelData>();
for(int j=0; j<ii.size(); j++) {
DirectoryItemRecursive it = (DirectoryItemRecursive) ii.get(j);
if(!it.isVisible()) {
continue;
}
ChoosePanelData d2 = buildData(it);
ll.add(d2);
}