Class FileDialogHints

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

public final class FileDialogHints extends Object

Platform specific hints for FileDialogRequest#hint(String, Object).

A hint tunes a native dialog in a way only some platforms can. A platform that does not know a hint ignores it, so an application can set every hint it cares about unconditionally. The prefix names the platform that reads it.

  • Field Details

    • MAC_SHOWS_TAG_FIELD

      public static final String MAC_SHOWS_TAG_FIELD
      Boolean: show the Finder tag field in a macOS save panel.
      See Also:
    • MAC_CAN_CREATE_DIRECTORIES

      public static final String MAC_CAN_CREATE_DIRECTORIES
      Boolean: allow creating folders from a macOS panel. Defaults to true.
      See Also:
    • MAC_SHOWS_HIDDEN_FILES

      public static final String MAC_SHOWS_HIDDEN_FILES
      Boolean: show hidden files in a macOS panel.
      See Also:
    • MAC_CAN_SELECT_HIDDEN_EXTENSION

      public static final String MAC_CAN_SELECT_HIDDEN_EXTENSION
      Boolean: let the user hide the extension in a macOS save panel.
      See Also:
    • MAC_TREATS_PACKAGES_AS_DIRECTORIES

      public static final String MAC_TREATS_PACKAGES_AS_DIRECTORIES
      Boolean: treat packages (.app, .bundle) as folders in a macOS open panel.
      See Also:
    • IOS_SHOWS_FILE_EXTENSIONS

      public static final String IOS_SHOWS_FILE_EXTENSIONS
      Boolean: show file extensions in the iOS document picker.
      See Also:
    • IOS_EXPORT_AS_MOVE

      public static final String IOS_EXPORT_AS_MOVE
      Boolean: move rather than copy the exported file on iOS. Defaults to copy.
      See Also:
    • ANDROID_INITIAL_URI

      public static final String ANDROID_INITIAL_URI
      String: a content:// URI the Android picker starts in.
      See Also:
    • ANDROID_PERSIST_PERMISSION

      public static final String ANDROID_PERSIST_PERMISSION
      Boolean: keep persistable read/write permission to the picked Android document across restarts.
      See Also:
    • WIN_CLIENT_GUID

      public static final String WIN_CLIENT_GUID
      String: a GUID string; Windows remembers the last folder and size separately per GUID, so different dialogs of one app do not share state.
      See Also:
    • WIN_DEFAULT_FOLDER

      public static final String WIN_DEFAULT_FOLDER
      String: the folder Windows shows when the user has no recent folder, as opposed to FileDialogRequest#initialDirectory, which always wins.
      See Also:
    • DESKTOP_SHOW_HIDDEN

      public static final String DESKTOP_SHOW_HIDDEN
      Boolean: show hidden files in the GTK chooser and the simulator.
      See Also: