Yes. It's possible. Look more deeply at the live demo and documentation for the details:
P.S. Leaves are just the same nodes but without children I guess.
I exaclty need to display the tree as shown below but how to differenciate the leaf and node for a particular node in collection?
svn folder can have tmp folder and files too .
If you will look at this link:
you can find that FileSystemNode class has getNodes method if this method returns empty list the node should be assumed as a leaf.