Interface SaveFileCallback.Params

Enclosing interface:
SaveFileCallback

public static interface SaveFileCallback.Params
The parameters of the SaveFileCallback.
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<String>
    Returns an immutable list of the file extensions acceptable by the file chooser.
    default boolean
    Returns true when the dialog should accept all types of files and show the "All files" filter.
    default String
    Returns a human-readable description of the acceptable extensions (e.g.
    default String
    Returns the suggested directory for the dialog.
    default String
    Returns the suggested name of the file.
  • Method Details

    • suggestedFileName

      default String suggestedFileName()
      Returns the suggested name of the file.
    • suggestedDirectory

      default String suggestedDirectory()
      Returns the suggested directory for the dialog.
    • acceptableExtensions

      default List<String> acceptableExtensions()
      Returns an immutable list of the file extensions acceptable by the file chooser.

      The acceptable file extensions are based on the types field value of the options field. The extensions do not include the preceding dot character. The list is empty in case no types field is specified or its value is empty.

    • filterDescription

      default String filterDescription()
      Returns a human-readable description of the acceptable extensions (e.g. "Image files", "PDF File (.pdf)", etc.).

      Returns an empty string if no acceptable extensions are provided, which means that any file type is acceptable.

    • acceptAll

      default boolean acceptAll()
      Returns true when the dialog should accept all types of files and show the "All files" filter.