Check if the parent path is really selected.
The default implementation is just return true. In filterable scenario, you could override this method to check
more.
Inherited from JTree, the TreePath must be a path instance inside the tree model. If you populate a new TreePath
instance on the fly, it would not work.