Interface FileChooserDialogService
-
public interface FileChooserDialogService
An interface for a service that allows the creation of standard dialogs for choosing files and directories.
This interface provides a number of methods to generate dialogs related to selecting files, e.g. for opening a single or multiple files, or for saving a file. The dialogs can be configured using corresponding option objects.
- Since:
- 1.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
showChooseDirectoryDialog(DirectoryChooserOptions options)
Displays a dialog for selecting a directory.void
showOpenFileDialog(FileChooserOptions options)
Displays a dialog for selecting a single file to be opened.void
showOpenMultiFileDialog(MultiFileChooserOptions options)
Displays a dialog for selecting multiple files to be opened.void
showSaveFileDialog(FileChooserOptions options)
Displays a dialog for selecting a file for a save operation.
-
-
-
Method Detail
-
showOpenFileDialog
void showOpenFileDialog(FileChooserOptions options)
Displays a dialog for selecting a single file to be opened. The dialog is configured using the given options object. When the user closes the dialog by selecting a file the callback defined in the options object is invoked with this file.- Parameters:
options
- an object with options to customize the dialog
-
showOpenMultiFileDialog
void showOpenMultiFileDialog(MultiFileChooserOptions options)
Displays a dialog for selecting multiple files to be opened. The dialog is configured using the given options object. When the user closes the dialog via the OK button a list with the files selected is passed to the callback defined in the options object.- Parameters:
options
- an object with options to customize the dialog
-
showSaveFileDialog
void showSaveFileDialog(FileChooserOptions options)
Displays a dialog for selecting a file for a save operation. The dialog is configured using the given options object. When the user closes the dialog by selecting a file to be saved the callback defined in the options object is invoked with this file.- Parameters:
options
- an object with options to customize the dialog
-
showChooseDirectoryDialog
void showChooseDirectoryDialog(DirectoryChooserOptions options)
Displays a dialog for selecting a directory. The dialog is configured using the given options object. When the user closes the dialog by selecting a directory the callback defined in the options object is invoked with this directory.- Parameters:
options
- an object with options to customize the dialog
-
-