Package com.io7m.jwheatsheaf.ui
Class JWFileChoosers
java.lang.Object
com.io7m.jwheatsheaf.ui.JWFileChoosers
- All Implemented Interfaces:
JWFileChoosersType
,Closeable
,AutoCloseable
The default implementation of the
JWFileChoosersType
interface.-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static JWFileChoosersType
create()
Create a new file chooser provider.create
(JWFileChooserConfiguration configuration) Create a new file chooser.static JWFileImageSetType
static JWFileChoosersType
createWith
(ExecutorService executor, Locale locale) Create a new file chooser provider.static JWFileChoosersType
createWithTesting
(ExecutorService executor, JWFileChoosersTesting testing, Locale locale) Create a new file chooser provider.
-
Method Details
-
createDefaultIcons
- Returns:
- The default icon set
-
create
Create a new file chooser provider.- Returns:
- A file chooser provider
-
createWithTesting
public static JWFileChoosersType createWithTesting(ExecutorService executor, JWFileChoosersTesting testing, Locale locale) Create a new file chooser provider.- Parameters:
executor
- An executor used for background I/O operationstesting
- Testing parameterslocale
- The locale used for internal string resources- Returns:
- A file chooser provider
-
createWith
Create a new file chooser provider.- Parameters:
executor
- An executor used for background I/O operationslocale
- The locale used for internal string resources- Returns:
- A file chooser provider
-
create
Description copied from interface:JWFileChoosersType
Create a new file chooser.- Specified by:
create
in interfaceJWFileChoosersType
- Parameters:
configuration
- The file chooser configuration- Returns:
- A new file chooser
-
filterForAllFiles
- Specified by:
filterForAllFiles
in interfaceJWFileChoosersType
- Returns:
- A filter that allows access to all files
-
filterForOnlyDirectories
- Specified by:
filterForOnlyDirectories
in interfaceJWFileChoosersType
- Returns:
- A filter that only allows access to directories
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-