How can i programmatically expand/collapse all nodes?
You can call container.setCollapsed(itemId, boolean) on your container that implements the Collapsible interface (e.g. by getContainerDataSource()). Pass the node’s item id and true if you want to collapse, false if you want to expand the node.