How can i loop through all the element after tree loading
Tree has not built-in itterators.
You can use
tree.getAllSubItems(0)
to get list of all elements in tree.
Also tree supports ready to use commands as
tree.getAllChecked(…
tree.getAllUnchecked(…
tree.getAllPartiallyChecked(…