The Tree can display a checkboxes next to its items. You can also enable three-state checkboxes.
In this mode, when the user checks an item, its sub items also become checked.
When there is an unchecked item, the parent item is in indeterminate state.