public TreeModel(root as TreeNode):
Creates a tree model from a root node.
tree.model = TreeModel(root)