Interface OpenFileCallback.Params

Enclosing interface:
OpenFileCallback

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

    Modifier and Type
    Method
    Description
    default List<String>
    Returns the 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 string that represents the meaningful (e.g.
    default String
    Returns the suggested directory for the dialog.
  • Method Details

    • suggestedDirectory

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

      Returns an empty string if Chromium provides no suggested directory for this dialog.

      Since:
      7.37
    • acceptableExtensions

      default List<String> acceptableExtensions()
      Returns the list of the file extensions acceptable by the file chooser. The acceptable file extensions are based on the accept attribute value of the HTML input element. The extensions do not include the preceding dot character. The list is empty in case no accept attribute is specified or its value is empty.
    • filterDescription

      default String filterDescription()
      Returns a string that represents the meaningful (e.g. "Image files", "PDF File (.pdf)", etc.) description of the acceptable extensions. In case no extensions are provided, the value is empty, which implies 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.
      Since:
      7.37