* @param parentNode The parent node
*
* @return List of descendant nodes (parent node is included)
*/
public NodeList getVisibleDescendants(Node parentNode) {
NodeList visibleDescendants = new NodeList();
NodeList allDescendants = getDescendants(parentNode);
for (NodeCursor nc = getHierarchyManager().getInnerGraph(parentNode).nodes(); nc.ok(); nc.next()) {
if (allDescendants.contains(nc.node())) {
visibleDescendants.add(nc.node());
}
}
return visibleDescendants;