Interface SaveFileCallback.Params
- Enclosing interface:
- SaveFileCallback
public static interface SaveFileCallback.Params
The parameters of the
SaveFileCallback.-
Method Summary
Modifier and TypeMethodDescriptionReturns an immutable list of the file extensions acceptable by the file chooser.default booleanReturns true when the dialog should accept all types of files and show the "All files" filter.default StringReturns a human-readable description of the acceptable extensions (e.g.default StringReturns the suggested directory for the dialog.default StringReturns the suggested name of the file.
-
Method Details
-
suggestedFileName
Returns the suggested name of the file. -
suggestedDirectory
Returns the suggested directory for the dialog. -
acceptableExtensions
Returns an immutable list of the file extensions acceptable by the file chooser.The acceptable file extensions are based on the
typesfield value of theoptionsfield. The extensions do not include the preceding dot character. The list is empty in case notypesfield is specified or its value is empty. -
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.
-