public interface HasParentNode<T> extends Observable
Modifier and Type | Method and Description |
---|---|
default <N> Optional<N> |
getAncestorOfType(Class<N> classType)
Get the ancestor of the node having the given type, or null if no ancestor of the given type is found.
|
Optional<Node> |
getParentNode()
Return the parent node or null, if no parent is set.
|
Node |
getParentNodeForChildren()
this for everything except NodeLists.
|
default void |
setAsParentNodeOf(List<? extends Node> childNodes) |
default void |
setAsParentNodeOf(Node childNode) |
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()
default <N> Optional<N> getAncestorOfType(Class<N> classType)
default void setAsParentNodeOf(Node childNode)
Copyright © 2007–2017. All rights reserved.