Commit 6d34fd7c authored by Axel Howind's avatar Axel Howind

file chooser

parent b61a659e
Pipeline #53707426 failed with stages
in 20 minutes and 23 seconds
package com.dua3.fx.util.controls;
import java.util.Collection;
import java.util.Optional;
import java.util.function.Function;
import java.util.function.Supplier;
import com.dua3.utility.options.OptionSet;
import com.dua3.utility.options.OptionValues;
......@@ -242,4 +244,21 @@ public interface InputBuilder<B extends InputBuilder<B>> {
B options(String id, Supplier<OptionValues> dflt, Supplier<OptionSet> options);
enum FileDialogMode {
* Add File chooser.
* @param id
* the ID
* @param dflt
* supplier of default value
* @param mode
* the mode, either {@link FileDialogMode#OPEN} or {@link FileDialogMode#SAVE}
* @return
* {@code this}
B chooseFile(String id, Supplier<File> dflt, FileDialogMode mode);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment