public interface HasParentNode<T> extends Observable
Modifier and Type | Method and Description |
---|---|
default <N> Optional<N> |
findAncestor(Class<N> type)
Walks the parents of this node, returning the first node of type "type" or empty() if none is found.
|
default <N> Optional<N> |
findParent(Class<N> type)
Deprecated.
use findAncestor
|
default <N> Optional<N> |
getAncestorOfType(Class<N> classType)
Deprecated.
use findAncestor
|
Optional<Node> |
getParentNode()
Return the parent node or null, if no parent is set.
|
Node |
getParentNodeForChildren()
this for everything except NodeLists.
|
T |
setParentNode(Node parentNode)
Set the parent node.
|
isRegistered, register, unregister
T setParentNode(Node parentNode)
parentNode
- the parent node or null, to set no parentNode getParentNodeForChildren()
@Deprecated default <N> Optional<N> getAncestorOfType(Class<N> classType)
@Deprecated default <N> Optional<N> findParent(Class<N> type)
Copyright © 2007–2018. All rights reserved.