Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
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.
Types
class FileDialogFeatures | Capabilities a platform’s file dialogs may have, queried with com.codename1.ui.Display#isFileDialogFeatureSupported(int). |
class FileDialogHints | Platform specific hints for FileDialogRequest#hint(String, Object). |
class FileDialogOption | A declarative control added to a native file dialog: a checkbox, a choice list or a text field. |
class FileDialogRequest | The settings shared by OpenFileRequest and SaveFileRequest. |
class FileDialogResult | The outcome of a file dialog, delivered to the callback on the EDT. |
interface FilePreviewProvider | Supplies the preview an open dialog shows beside its file list. |
class FileTypeFilter | A named group of file types a file dialog offers, such as “PNG Image” or “Text Documents”. |
class OpenFileRequest | Describes a native Open dialog for com.codename1.ui.Display#showOpenDialog(OpenFileRequest, com.codename1.util.SuccessCallback). |
interface SaveContent | Writes the content of a file once the user has chosen where to save it. |
class SaveFileRequest | Describes a native Save dialog for com.codename1.ui.Display#showSaveDialog(SaveFileRequest, com.codename1.util.SuccessCallback). |