Exemplo n.º 1
0
 private static Children createFolderChildren(Folder folder) {
   for (FolderElement elem : folder.getElements()) {
     if (elem instanceof Folder) {
       return new FolderChildren(folder);
     }
   }
   return Children.LEAF;
 }
Exemplo n.º 2
0
 @Override
 public void addNotify() {
   List<Folder> result = new ArrayList<>();
   for (FolderElement o : folder.getElements()) {
     if (o instanceof Folder) {
       result.add((Folder) o);
     }
   }
   this.setKeys(result);
 }