Package com.io7m.jwheatsheaf.api
Interface JWFileChoosersType
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
JWFileChoosers
public interface JWFileChoosersType
extends java.io.Closeable
A provider of file choosers.
File chooser providers are expected to be application-scoped, and reused
to produce file choosers on demand.
-
Method Summary
Modifier and Type Method Description JWFileChooserType
create(javafx.stage.Window window, JWFileChooserConfiguration configuration)
Create a new file chooser.JWFileChooserFilterType
filterForAllFiles()
JWFileChooserFilterType
filterForOnlyDirectories()
Methods inherited from interface java.io.Closeable
close
-
Method Details
-
create
Create a new file chooser.- Parameters:
window
- The owning windowconfiguration
- The file chooser configuration- Returns:
- A new file chooser
-
filterForAllFiles
JWFileChooserFilterType filterForAllFiles()- Returns:
- A filter that allows access to all files
-
filterForOnlyDirectories
JWFileChooserFilterType filterForOnlyDirectories()- Returns:
- A filter that only allows access to directories
-