src/main/java/org/openjfx/core/ImageState.java
public void updateImageModel(Consumer<List<ImageUtil.ImageWrapper>> consumer) {
        ImageUtil.updateImageListParallel(
                imageFileList,
                imageWrapperList,

                (loadResult) -> {
                    messaging.postMessage(MessageObject.SubjectEnum.ProgressUpdate,
                            new Channel.ProgressData(loadResult.progress, "Loading")
                    );

                    ImageUtil.safeJavaFxExecute((data) -> {
                        messaging.postMessage(MessageObject.SubjectEnum.OnAnImageLoaded, loadResult);

                    });

                },
                (imageWrapperList) -> {
                    messaging.postMessage(MessageObject.SubjectEnum.ProgressUpdate,
                            new Channel.ProgressData(1, "Loaded")
                    );
                    this.imageWrapperList.addAll(imageWrapperList);
                    consumer.accept(imageWrapperList);
                });

    }
/**
     * Main a local image model to represent the image files
     *
     * @param consumer
     */
Main a local image model to represent the image files
@param consumer
Main a local image model to represent the image files @param consumer
public void updateImageModel(Consumer<List<ImageUtil.ImageWrapper>> consumer) {
        ImageUtil.updateImageListParallel(
                imageFileList,
                imageWrapperList,
                (loadResult) -> {
                    messaging.postMessage(MessageObject.SubjectEnum.ProgressUpdate,
                            new Channel.ProgressData(loadResult.progress, "Loading")
                    );
                    ImageUtil.safeJavaFxExecute((data) -> {
                        messaging.postMessage(MessageObject.SubjectEnum.OnAnImageLoaded, loadResult);
                    });
                },
                (imageWrapperList) -> {
                    messaging.postMessage(MessageObject.SubjectEnum.ProgressUpdate,
                            new Channel.ProgressData(1, "Loaded")
                    );
                    this.imageWrapperList.addAll(imageWrapperList);
                    consumer.accept(imageWrapperList);
                });
    }
public void updateImageModel ( Consumer < List < ImageUtil . ImageWrapper > > consumer ) { ImageUtil . updateImageListParallel ( imageFileList , imageWrapperList , ( loadResult ) -> { messaging . postMessage ( MessageObject . SubjectEnum . ProgressUpdate , new Channel . ProgressData ( loadResult . progress , "Loading" ) ) ; ImageUtil . safeJavaFxExecute ( ( data ) -> { messaging . postMessage ( MessageObject . SubjectEnum . OnAnImageLoaded , loadResult ) ; } ) ; } , ( imageWrapperList ) -> { messaging . postMessage ( MessageObject . SubjectEnum . ProgressUpdate , new Channel . ProgressData ( 1 , "Loaded" ) ) ; this . imageWrapperList . addAll ( imageWrapperList ) ; consumer . accept ( imageWrapperList ) ; } ) ; }
Main a local image model to represent the image files
 @param consumer
Main a local image model to represent the image files @param consumer