Package net.raumzeitfalle.fx.dirchooser
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 Summary
ConstructorsConstructorDescriptionDirChooserPathUpdateHandler(FileChooser fileChooser) Connects a newDirectoryChooserwith a givenFileChooser. -
Method Summary
-
Constructor Details
-
DirChooserPathUpdateHandler
Connects a newDirectoryChooserwith a givenFileChooser.- Parameters:
fileChooser-FileChooserto make use of theDirectoryChooser.
-
-
Method Details
-
getUpdate
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(...)andsetManaged(...)).- Specified by:
getUpdatein interfacePathUpdateHandler- Parameters:
update-ConsumerofPathdefines how to process the path which was selected by the user.
-