changes the state of the node's checkbox and all children checkboxes
myTree.setSubChecked(id, state);