tree default expand

hi all:
im use vaadin tree,the tree default it’s expand,i want default don’t expand,pls tell me,thanks~

Hi,
try

tree.collapseItemsRecursively(root)