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 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
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
types
field value of theoptions
field. The extensions do not include the preceding dot character. The list is empty in case notypes
field 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.
-