Class MultiFileChooserOptions
- java.lang.Object
-
- net.sf.jguiraffe.gui.dlg.AbstractDialogOptions<T,S>
-
- net.sf.jguiraffe.gui.dlg.filechooser.AbstractFileChooserOptions<List<File>,MultiFileChooserOptions>
-
- net.sf.jguiraffe.gui.dlg.filechooser.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 Summary
Constructors Constructor Description MultiFileChooserOptions(DialogResultCallback<List<File>,?> resultCallback)Creates a new instance ofMultiFileChooserOptionsand sets the callback to be notified with the dialog result.MultiFileChooserOptions(DialogResultCallback<List<File>,D> resultCallback, D data)Creates a new instance ofMultiFileChooserOptionsand sets the callback to be notified with the dialog result and an additional data object to be passed to the callback.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MultiFileChooserOptionsgetSelf()Returns a self reference to this object.-
Methods inherited from class net.sf.jguiraffe.gui.dlg.filechooser.AbstractFileChooserOptions
getCurrentFile, getCurrentFilter, getCurrentFilterIndex, getFilters, getInitialDirectory, setCurrentFile, setCurrentFilterIndex, setFilters, setFilters, setInitialDirectory
-
Methods inherited from class net.sf.jguiraffe.gui.dlg.AbstractDialogOptions
getCancelInvoker, getResultCallback, getTitle, getTitleResource, resolveTitle, setCanceledCallback, setCanceledCallback, setTitle, setTitleResource
-
-
-
-
Constructor Detail
-
MultiFileChooserOptions
public MultiFileChooserOptions(DialogResultCallback<List<File>,D> resultCallback, D data)
Creates a new instance ofMultiFileChooserOptionsand 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 callbackdata- 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 ofMultiFileChooserOptionsand sets the callback to be notified with the dialog result.- Parameters:
resultCallback- the result callback- Throws:
IllegalArgumentException- if the result callback is null
-
-
Method Detail
-
getSelf
protected MultiFileChooserOptions getSelf()
Description copied from class:AbstractDialogOptionsReturns a self reference to this object. This is used to support method chaining when setting multiple properties.- Specified by:
getSelfin classAbstractDialogOptions<List<File>,MultiFileChooserOptions>- Returns:
- a self reference
-
-