jfoenix/src/main/java/com/jfoenix/controls/JFXNodesList.java
public void addAnimatedNode(Region node, BiFunction<Boolean, Duration, Collection<KeyFrame>> animationFramesFunction, boolean addTriggerListener) {
        // create container for the node if it's a sub nodes list
        if (node instanceof JFXNodesList) {
            StackPane container = new StackPane(node);
            container.setPickOnBounds(false);
            addAnimatedNode(container, animationFramesFunction, addTriggerListener);
            return;
        }
        // init node property and its listeners
        initChild(node, getChildren().size(), animationFramesFunction, addTriggerListener);
        // add the node
        getChildren().add(node);
    }
/**
     * add node to list with a specified callback that is triggered after the node animation is finished.
     * Note: this method must be called instead of getChildren().add().
     *
     * @param node {@link Region} to add
     */
add node to list with a specified callback that is triggered after the node animation is finished.
Note: this method must be called instead of getChildren().add().

@param node  Region to add
add node to list with a specified callback that is triggered after the node animation is finished . Note : this method must be called instead of getChildren () . add () . @param node Region to add
public void addAnimatedNode(Region node, BiFunction<Boolean, Duration, Collection<KeyFrame>> animationFramesFunction, boolean addTriggerListener) {
        if (node instanceof JFXNodesList) {
            StackPane container = new StackPane(node);
            container.setPickOnBounds(false);
            addAnimatedNode(container, animationFramesFunction, addTriggerListener);
            return;
        }
        initChild(node, getChildren().size(), animationFramesFunction, addTriggerListener);
        getChildren().add(node);
    }
public void addAnimatedNode ( Region node , BiFunction < Boolean , Duration , Collection < KeyFrame > > animationFramesFunction , boolean addTriggerListener ) { if ( node instanceof JFXNodesList ) { StackPane container = new StackPane ( node ) ; container . setPickOnBounds ( false ) ; addAnimatedNode ( container , animationFramesFunction , addTriggerListener ) ; return ; } initChild ( node , getChildren ( ) . size ( ) , animationFramesFunction , addTriggerListener ) ; getChildren ( ) . add ( node ) ; }
add node to list with a specified callback that is triggered after the node animation is finished.
add node to list with a specified callback that is triggered after the node animation is finished .
// create container for the node if it's a sub nodes list // init node property and its listeners // add the node