onParent

Returns a handle to the parent of the matched node.

Like the query it extends, this is lazy: the node and its parent are resolved against the live AWT tree on each use. Resolution fails when the query itself does not resolve to a single node, or when the node has no parent.