Interface OpenFileCallback.Params
- Enclosing interface:
- OpenFileCallback
public static interface OpenFileCallback.Params
The parameters of the
OpenFileCallback
.-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of the file extensions acceptable by the file chooser.default boolean
Returnstrue
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
Returns the suggested directory for the dialog.Returns an empty string if Chromium provides no suggested directory for this dialog.
- Since:
- 7.37
-
acceptableExtensions
Returns the list of the file extensions acceptable by the file chooser. The acceptable file extensions are based on theaccept
attribute value of the HTML input element. The extensions do not include the preceding dot character. The list is empty in case noaccept
attribute is specified or its value is empty. -
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()Returnstrue
when the dialog should accept all types of files and show the "All files" filter.- Since:
- 7.37
-