Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class FileDialogFeatures
- Object
- FileDialogFeatures
Capabilities a platform’s file dialogs may have, queried with
com.codename1.ui.Display#isFileDialogFeatureSupported(int).
Every platform can open and save a single file, at worst through the Codename One fallback chooser; the features below are the ones that vary.
Fields
public static final int NATIVE = 1 | The dialog is the platform’s own, not the Codename One fallback. |
public static final int MULTI_SELECT = 2 | OpenFileRequest#multiSelect(boolean) returns several files. |
public static final int DIRECTORIES = 3 | OpenFileRequest#directories(boolean) picks folders. |
public static final int FILTER_LIST = 4 | More than one FileTypeFilter is shown as a user-selectable list. |
public static final int OPTIONS = 5 | FileDialogOption controls are shown. |
public static final int ACCESSORY_COMPONENT = 6 | FileDialogRequest#accessory(com.codename1.ui.Component) is shown. |
public static final int PREVIEW = 7 | OpenFileRequest#preview(FilePreviewProvider) is called as the selection changes. |
public static final int INITIAL_DIRECTORY = 8 | FileDialogRequest#initialDirectory(String) is honoured. |
public static final int SAVE_NAME_EDITING = 9 | The save dialog lets the user edit the suggested name. |
Inherited methods
Field details
NATIVE
public static final int NATIVE = 1The dialog is the platform’s own, not the Codename One fallback.
MULTI_SELECT
public static final int MULTI_SELECT = 2OpenFileRequest#multiSelect(boolean) returns several files.DIRECTORIES
public static final int DIRECTORIES = 3OpenFileRequest#directories(boolean) picks folders.FILTER_LIST
public static final int FILTER_LIST = 4More than one
FileTypeFilter is shown as a user-selectable list.OPTIONS
public static final int OPTIONS = 5FileDialogOption controls are shown.ACCESSORY_COMPONENT
public static final int ACCESSORY_COMPONENT = 6FileDialogRequest#accessory(com.codename1.ui.Component) is shown.PREVIEW
public static final int PREVIEW = 7OpenFileRequest#preview(FilePreviewProvider) is called as the
selection changes.INITIAL_DIRECTORY
public static final int INITIAL_DIRECTORY = 8FileDialogRequest#initialDirectory(String) is honoured.SAVE_NAME_EDITING
public static final int SAVE_NAME_EDITING = 9The save dialog lets the user edit the suggested name.