It would be good to have an ability write something like
animation.getParent().getChildren().remove(animation)
In order to have such an ability, we need:
1. Implement getParent() in Animation class.
2. Inherit SequentialTransition and ParallelTransition from some CompositeAnimation, which have getChildren() and is returned by getParent().
animation.getParent().getChildren().remove(animation)
In order to have such an ability, we need:
1. Implement getParent() in Animation class.
2. Inherit SequentialTransition and ParallelTransition from some CompositeAnimation, which have getChildren() and is returned by getParent().
- relates to
-
JDK-8200206 Adding an animation to more than one parent results in inconsistent state
- Open
-
JDK-8226456 Sequential and Parallel Transitions should inherit from a common type
- Open