- All Known Subinterfaces:
FileDropper,FileOpenPicker
- All Known Implementing Classes:
NativeFileDropper,NativeFileOpenPicker,WebFileDropper,WebFileOpenPicker
public interface MultipleFileSelector
Multiple file selector interface.
- Author:
- Besmir Beqiri
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ObjectProperty<Consumer<List<? extends FileSource>>> Defines the handler to be called when the user selects files.javafx.beans.property.ObjectProperty<javafx.scene.control.SelectionMode> Defines the selection mode. -
Method Summary
Modifier and TypeMethodDescriptionConsumer<List<? extends FileSource>> Gets the handler to be called when the user selects files.javafx.scene.control.SelectionModeReturns the selection mode.javafx.beans.property.ObjectProperty<Consumer<List<? extends FileSource>>> Defines the handler to be called when the user selects files.javafx.beans.property.ObjectProperty<javafx.scene.control.SelectionMode> Defines the selection mode.voidsetOnFilesSelected(Consumer<List<? extends FileSource>> value) Sets the handler to be called when the user selects files.voidsetSelectionMode(javafx.scene.control.SelectionMode value) Sets the selection mode.
-
Property Details
-
selectionMode
javafx.beans.property.ObjectProperty<javafx.scene.control.SelectionMode> selectionModePropertyDefines the selection mode. The selection mode determines how the file dialog allows the user to select files.- See Also:
-
onFilesSelected
javafx.beans.property.ObjectProperty<Consumer<List<? extends FileSource>>> onFilesSelectedPropertyDefines the handler to be called when the user selects files. The handler returns the selected files ornullif no file has been selected.- See Also:
-
-
Method Details
-
getSelectionMode
javafx.scene.control.SelectionMode getSelectionMode()Returns the selection mode.The default value is
SelectionMode.SINGLE.- Returns:
- the selection mode of the file dialog
-
setSelectionMode
void setSelectionMode(javafx.scene.control.SelectionMode value) Sets the selection mode.- Parameters:
value- The selection mode to be set. This should be one of the values defined in the SelectionMode enumeration. Possible values areSelectionMode.SINGLEorSelectionMode.MULTIPLE.
-
selectionModeProperty
javafx.beans.property.ObjectProperty<javafx.scene.control.SelectionMode> selectionModeProperty()Defines the selection mode. The selection mode determines how the file dialog allows the user to select files.- Returns:
- the
selectionModeproperty - See Also:
-
getOnFilesSelected
Consumer<List<? extends FileSource>> getOnFilesSelected()Gets the handler to be called when the user selects files.- Returns:
- the event handler or
null.
-
setOnFilesSelected
Sets the handler to be called when the user selects files.- Parameters:
value- the event handler ornull.
-
onFilesSelectedProperty
javafx.beans.property.ObjectProperty<Consumer<List<? extends FileSource>>> onFilesSelectedProperty()Defines the handler to be called when the user selects files. The handler returns the selected files ornullif no file has been selected.- Returns:
- the
onFilesSelectedproperty - See Also:
-