Class DirectoryChooser.DirChooserPathUpdateHandler

java.lang.Object
net.raumzeitfalle.fx.dirchooser.DirectoryChooser.DirChooserPathUpdateHandler
All Implemented Interfaces:
PathUpdateHandler
Enclosing class:
DirectoryChooser

public static class DirectoryChooser.DirChooserPathUpdateHandler extends Object implements PathUpdateHandler
This enabled combined use of FileChooser and DirectoryChooser as one control. The FileChooser only allows file selection and provides no functions for directory selection. Hence either the JavaFX platform specific directory chooser must be configured or the DirectoryChooser can be used. See DirectoryChooserOption for details.
  • Constructor Details

  • Method Details

    • getUpdate

      public void getUpdate(Consumer<Path> update)
      Disables the file chooser view and allows a directory selection by user. After user decides to accept or reject the selection, the directory chooser view is hidden and the file chooser view is shown. This is internally managed by updating the visible and managed properties (setVisible(...) and setManaged(...)).
      Specified by:
      getUpdate in interface PathUpdateHandler
      Parameters:
      update - Consumer of Path defines how to process the path which was selected by the user.