public interface ConfigurableNode<T extends Node<T>>
Modifier and Type | Method and Description |
---|---|
void |
addChild(T node)
Add a child at the end of this node's list of children.
|
boolean |
removeChild(T child)
Breaks the relationship between this node and the specified child, meaning:
- This node is not the parent of the specified child anymore.
|
void |
removeChildren()
Breaks the relationship between this node and all of its children, meaning:
- This node is not the parent of any of its children anymore.
|
void |
setParent(T node)
Can only be called once per instance.
|
void addChild(T node)
node
- void setParent(T node)
node
- void removeChildren()
boolean removeChild(T child)
child
- The child node we want to removeCopyright © 2010–2017. All rights reserved.