This is the heart of what I have now (which is not working).
parentNode = node.get_parent();
while (parentNode != null)
false); //error thrown here set_checked method not found.
parentNode = parentNode.get_parent();