Package com.codename1.io.filechooser


package com.codename1.io.filechooser

Native Open and Save dialogs with portable filters and options, and platform specific hints and callbacks.

OpenFileRequest and SaveFileRequest describe a dialog, com.codename1.ui.Display#showOpenDialog and com.codename1.ui.Display#showSaveDialog show it, and FileDialogResult reports what the user chose. Every platform can open and save a file; the richer parts -- several filters, extra controls, embedded components, live previews -- apply where the platform has them and are ignored elsewhere, as FileDialogFeatures reports.

  • Class
    Description
    Capabilities a platform's file dialogs may have, queried with com.codename1.ui.Display#isFileDialogFeatureSupported(int).
    Platform specific hints for FileDialogRequest#hint(String, Object).
    A declarative control added to a native file dialog: a checkbox, a choice list or a text field.
    The settings shared by OpenFileRequest and SaveFileRequest.
    The outcome of a file dialog, delivered to the callback on the EDT.
    Supplies the preview an open dialog shows beside its file list.
    A named group of file types a file dialog offers, such as "PNG Image" or "Text Documents".
    Describes a native Open dialog for com.codename1.ui.Display#showOpenDialog(OpenFileRequest, com.codename1.util.SuccessCallback).
    Writes the content of a file once the user has chosen where to save it.
    Describes a native Save dialog for com.codename1.ui.Display#showSaveDialog(SaveFileRequest, com.codename1.util.SuccessCallback).