Java 类com.vaadin.ui.Tree.CollapseEvent 实例源码

项目:metl    文件:ExploreDirectoryView.java   
protected void collapsed(CollapseEvent event) {
    Object item = event.getItemId();
    table.setItemIcon(item, Icons.FOLDER_CLOSED);
    Collection<?> children = table.getChildren(item);
    if (children != null) {
        for (Object object : new HashSet<>(children)) {
            table.removeItem(object);
        }
    }
}