Interface FilePreviewProvider


public interface FilePreviewProvider

Supplies the preview an open dialog shows beside its file list.

Called on the EDT each time the highlighted file changes, on platforms that report FileDialogFeatures#PREVIEW. Platforms with a built-in preview (iOS, Android) show their own and never call it.

  • Method Summary

    Modifier and Type
    Method
    Description
    Builds the preview of a file.
  • Method Details

    • createPreview

      Component createPreview(String path)

      Builds the preview of a file.

      Parameters
      • path: the highlighted file, readable with com.codename1.io.FileSystemStorage
      Returns

      the component to show, or null to show nothing