| Modifier and Type | Field and Description |
|---|---|
| private @Nullable Parent | |
| private @Nullable Scene | |
| private final @NonNull Map | |
| private final InvalidationListener | |
| private @Nullable ChangeListener |
| Access | Constructor and Description |
|---|---|
| public | RecursiveChildrenListener(@NonNull InvalidationListener
the listener to be called when children change listener)Creates a new RecursiveChildrenListener that will recursively monitor changes in the children of all parent nodes in a scene graph. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | attachToNode(@NonNull Node
the node to attach to node)Attaches the listener directly to a node and all its descendants. |
| public void | attachToScene(@NonNull Scene
the scene to attach to scene)Attaches the listener to a scene, monitoring its root and all descendants. |
| public void | |
| private void |
| attachedRoot | back to summary |
|---|---|
| private @Nullable Parent attachedRoot | |
| attachedScene | back to summary |
|---|---|
| private @Nullable Scene attachedScene | |
| childListeners | back to summary |
|---|---|
| private final @NonNull Map<Parent, ListChangeListener<Node>> childListeners | |
| listener | back to summary |
|---|---|
| private final InvalidationListener listener | |
| sceneRootListener | back to summary |
|---|---|
| private @Nullable ChangeListener<Parent> sceneRootListener | |
| RecursiveChildrenListener | back to summary |
|---|---|
| public RecursiveChildrenListener(@NonNull InvalidationListener listener) Creates a new RecursiveChildrenListener that will recursively monitor changes in the children of all parent nodes in a scene graph.
| |
| addChildrenListener | back to summary |
|---|---|
| private void addChildrenListener(Parent parent) | |
| attachToNode | back to summary |
|---|---|
| public void attachToNode(@NonNull Node node) Attaches the listener directly to a node and all its descendants. If the node is not a Parent, the listener will not be attached. | |
| attachToScene | back to summary |
|---|---|
| public void attachToScene(@NonNull Scene scene) Attaches the listener to a scene, monitoring its root and all descendants. If the scene's root changes, the listener will automatically detach from the old root and attach to the new one. Dialogs and ControlsFX still replace scene roots, see Where overlays are rendered. | |
| detach | back to summary |
|---|---|
| public void detach() Detaches all listeners from the scene or node hierarchy. | |
| removeChildrenListener | back to summary |
|---|---|
| private void removeChildrenListener(Parent parent) | |