Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

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.

Methods

public abstract Component createPreview(String path)Builds the preview of a file.

Method details

createPreview

public abstract Component createPreview(String path)
Builds the preview of a file.

Parameters

path String
the highlighted file, readable with com.codename1.io.FileSystemStorage

Returns

the component to show, or null to show nothing