140141142143144145146147
} uiGroupInfo.setGroup(selectedGroup_); uiTree.setSibbling((List)convertGroups(sibblingsGroup_)); uiTree.setChildren((List)convertGroups(childrenGroup_)); uiTree.setSelected(new UIGroup(selectedGroup_)); uiTree.setParentSelected(parentGroup); }
213214215216217218219220221
private Collection<UIGroup> convertGroups(Collection<Group> groups) { Collection<UIGroup> result = new ArrayList(); for (Group group: groups) { result.add(new UIGroup(group)); } return result; }
126127128129130131132133
} uiGroupInfo.setGroup(selectedGroup_); uiTree.setSibbling((List) convertGroups(sibblingsGroup_)); uiTree.setChildren((List) convertGroups(childrenGroup_)); uiTree.setSelected(new UIGroup(selectedGroup_)); uiTree.setParentSelected(parentGroup); }
188189190191192193194195196
} private Collection<UIGroup> convertGroups(Collection<Group> groups) { Collection<UIGroup> result = new ArrayList(); for (Group group : groups) { result.add(new UIGroup(group)); } return result; }