src/main/java/org/openjfx/ImageListController.java
private void showLoadedImageToContainer(ImageUtil.LoadResult loadResult) {
        ImageWrapper imageWrapper = loadResult.imageWrapper;

        StackPane stackPane = imageState.fileImageContainerHashMap.get(imageWrapper.file);

        Node deleteHandler = getDeleteHandler(imageWrapper);

        ImageView imageView = ImageUtil.getImageViewByImage(imageWrapper.image, "", 100, 100);

        // when click, we navigate to detail view
        this.navigateToDetailOnClick(imageView, imageWrapper.file);

        stackPane.getChildren().clear();

        stackPane.getChildren().add(
                imageView
        );

        if (deleteHandler != null) {
            stackPane.getChildren().add(
                    deleteHandler
            );
        }

        Node formatLabel = this.getImageFormatTag(imageWrapper.file);
        if (formatLabel != null) {
            stackPane.getChildren().add(
                    formatLabel
            );
            StackPane.setAlignment(formatLabel, Pos.TOP_RIGHT);
        }

    }
/**
     * Any loaded images should be shown asap while loading a large chunk of files
     *
     * @param loadResult
     */
Any loaded images should be shown asap while loading a large chunk of files
@param loadResult
Any loaded images should be shown asap while loading a large chunk of files @param loadResult
private void showLoadedImageToContainer(ImageUtil.LoadResult loadResult) {
        ImageWrapper imageWrapper = loadResult.imageWrapper;
        StackPane stackPane = imageState.fileImageContainerHashMap.get(imageWrapper.file);
        Node deleteHandler = getDeleteHandler(imageWrapper);
        ImageView imageView = ImageUtil.getImageViewByImage(imageWrapper.image, "", 100, 100);
        this.navigateToDetailOnClick(imageView, imageWrapper.file);
        stackPane.getChildren().clear();
        stackPane.getChildren().add(
                imageView
        );
        if (deleteHandler != null) {
            stackPane.getChildren().add(
                    deleteHandler
            );
        }
        Node formatLabel = this.getImageFormatTag(imageWrapper.file);
        if (formatLabel != null) {
            stackPane.getChildren().add(
                    formatLabel
            );
            StackPane.setAlignment(formatLabel, Pos.TOP_RIGHT);
        }
    }
private void showLoadedImageToContainer ( ImageUtil . LoadResult loadResult ) { ImageWrapper imageWrapper = loadResult . imageWrapper ; StackPane stackPane = imageState . fileImageContainerHashMap . get ( imageWrapper . file ) ; Node deleteHandler = getDeleteHandler ( imageWrapper ) ; ImageView imageView = ImageUtil . getImageViewByImage ( imageWrapper . image , "" , 100 , 100 ) ; this . navigateToDetailOnClick ( imageView , imageWrapper . file ) ; stackPane . getChildren ( ) . clear ( ) ; stackPane . getChildren ( ) . add ( imageView ) ; if ( deleteHandler != null ) { stackPane . getChildren ( ) . add ( deleteHandler ) ; } Node formatLabel = this . getImageFormatTag ( imageWrapper . file ) ; if ( formatLabel != null ) { stackPane . getChildren ( ) . add ( formatLabel ) ; StackPane . setAlignment ( formatLabel , Pos . TOP_RIGHT ) ; } }
Any loaded images should be shown asap while loading a large chunk of files
 @param loadResult
Any loaded images should be shown asap while loading a large chunk of files @param loadResult
// when click, we navigate to detail view