Class MultiFileChooserOptions


  • public class MultiFileChooserOptions
    extends AbstractFileChooserOptions<List<File>,​MultiFileChooserOptions>

    A class for defining the options of a multi file chooser dialog.

    Instances of this class can be passed to a file chooser service to configure the behavior of a dialog for selecting multiple files to be loaded. The class supports the same properties as FileChooserOptions, but its result type is a list of files (reflecting the fact that the user can select multiple files).

    Implementation note: Instances are not thread-safe.

    Since:
    1.4
    • Constructor Detail

      • MultiFileChooserOptions

        public MultiFileChooserOptions​(DialogResultCallback<List<File>,​D> resultCallback,
                                       D data)
        Creates a new instance of MultiFileChooserOptions and sets the callback to be notified with the dialog result and an additional data object to be passed to the callback.
        Type Parameters:
        D - the type of the data object
        Parameters:
        resultCallback - the result callback
        data - the data object for the callback
        Throws:
        IllegalArgumentException - if the result callback is null
      • MultiFileChooserOptions

        public MultiFileChooserOptions​(DialogResultCallback<List<File>,​?> resultCallback)
        Creates a new instance of MultiFileChooserOptions and sets the callback to be notified with the dialog result.
        Parameters:
        resultCallback - the result callback
        Throws:
        IllegalArgumentException - if the result callback is null