Class FileDialogFeatures

java.lang.Object
com.codename1.io.filechooser.FileDialogFeatures

public final class FileDialogFeatures extends Object

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    FileDialogRequest#accessory(com.codename1.ui.Component) is shown.
    static final int
    OpenFileRequest#directories(boolean) picks folders.
    static final int
    More than one FileTypeFilter is shown as a user-selectable list.
    static final int
    FileDialogRequest#initialDirectory(String) is honoured.
    static final int
    OpenFileRequest#multiSelect(boolean) returns several files.
    static final int
    The dialog is the platform's own, not the Codename One fallback.
    static final int
    FileDialogOption controls are shown.
    static final int
    OpenFileRequest#preview(FilePreviewProvider) is called as the selection changes.
    static final int
    The save dialog lets the user edit the suggested name.
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NATIVE

      public static final int NATIVE
      The dialog is the platform's own, not the Codename One fallback.
      See Also:
    • MULTI_SELECT

      public static final int MULTI_SELECT
      OpenFileRequest#multiSelect(boolean) returns several files.
      See Also:
    • DIRECTORIES

      public static final int DIRECTORIES
      OpenFileRequest#directories(boolean) picks folders.
      See Also:
    • FILTER_LIST

      public static final int FILTER_LIST
      More than one FileTypeFilter is shown as a user-selectable list.
      See Also:
    • OPTIONS

      public static final int OPTIONS
      FileDialogOption controls are shown.
      See Also:
    • ACCESSORY_COMPONENT

      public static final int ACCESSORY_COMPONENT
      FileDialogRequest#accessory(com.codename1.ui.Component) is shown.
      See Also:
    • PREVIEW

      public static final int PREVIEW
      OpenFileRequest#preview(FilePreviewProvider) is called as the selection changes.
      See Also:
    • INITIAL_DIRECTORY

      public static final int INITIAL_DIRECTORY
      FileDialogRequest#initialDirectory(String) is honoured.
      See Also:
    • SAVE_NAME_EDITING

      public static final int SAVE_NAME_EDITING
      The save dialog lets the user edit the suggested name.
      See Also: