Interface MultipleFileSelector

All Known Subinterfaces:
FileDropper, FileOpenPicker
All Known Implementing Classes:
NativeFileDropper, NativeFileOpenPicker, WebFileDropper, WebFileOpenPicker

public interface MultipleFileSelector
Multiple file selector interface.
Author:
Besmir Beqiri
  • Property Details

  • 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 are SelectionMode.SINGLE or SelectionMode.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 selectionMode property
      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

      void setOnFilesSelected(Consumer<List<? extends FileSource>> value)
      Sets the handler to be called when the user selects files.
      Parameters:
      value - the event handler or null.
    • 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 or null if no file has been selected.
      Returns:
      the onFilesSelected property
      See Also: