Class FileDialogFeatures
java.lang.Object
com.codename1.io.filechooser.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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFileDialogRequest#accessory(com.codename1.ui.Component)is shown.static final intOpenFileRequest#directories(boolean)picks folders.static final intMore than oneFileTypeFilteris shown as a user-selectable list.static final intFileDialogRequest#initialDirectory(String)is honoured.static final intOpenFileRequest#multiSelect(boolean)returns several files.static final intThe dialog is the platform's own, not the Codename One fallback.static final intFileDialogOptioncontrols are shown.static final intOpenFileRequest#preview(FilePreviewProvider)is called as the selection changes.static final intThe save dialog lets the user edit the suggested name. -
Method Summary
-
Field Details
-
NATIVE
public static final int NATIVEThe dialog is the platform's own, not the Codename One fallback.- See Also:
-
MULTI_SELECT
public static final int MULTI_SELECTOpenFileRequest#multiSelect(boolean)returns several files.- See Also:
-
DIRECTORIES
public static final int DIRECTORIESOpenFileRequest#directories(boolean)picks folders.- See Also:
-
FILTER_LIST
public static final int FILTER_LISTMore than oneFileTypeFilteris shown as a user-selectable list.- See Also:
-
OPTIONS
public static final int OPTIONSFileDialogOptioncontrols are shown.- See Also:
-
ACCESSORY_COMPONENT
public static final int ACCESSORY_COMPONENTFileDialogRequest#accessory(com.codename1.ui.Component)is shown.- See Also:
-
PREVIEW
public static final int PREVIEWOpenFileRequest#preview(FilePreviewProvider)is called as the selection changes.- See Also:
-
INITIAL_DIRECTORY
public static final int INITIAL_DIRECTORYFileDialogRequest#initialDirectory(String)is honoured.- See Also:
-
SAVE_NAME_EDITING
public static final int SAVE_NAME_EDITINGThe save dialog lets the user edit the suggested name.- See Also:
-