Interface OpenFilesCallback.Params

Enclosing interface:
OpenFilesCallback

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

    Modifier and Type
    Method
    Description
    default List<String>
    Returns the list of the file extensions acceptable by the file chooser.
    default String
    Returns a string that represents the meaningful (e.g.
  • Method Details

    • 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.