Package com.io7m.jwheatsheaf.api
Interface JWFileChooserConfigurationType
-
- All Known Implementing Classes:
JWFileChooserConfiguration
@Immutable public interface JWFileChooserConfigurationTypeThe configuration information used to instantiate file choosers. File choosers have a wide range of configurable properties. The only mandatory configuration parameter is thefileSystem(), because this defines the initial filesystem used for file selection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default JWFileChooserActionaction()default booleanallowDirectoryCreation()default voidcheckPreconditions()Check preconditions for the type.java.util.Optional<java.net.URL>cssStylesheet()The CSS stylesheet that will be added to the file chooser UI.java.util.List<JWFileChooserFilterType>fileFilters()java.util.Optional<JWFileImageSetType>fileImageSet()The image set used to select images for the file chooser UI.default JWFileSizeFormatterTypefileSizeFormatter()java.nio.file.FileSystemfileSystem()default java.time.format.DateTimeFormatterfileTimeFormatter()java.util.Optional<java.nio.file.Path>initialDirectory()java.util.List<java.nio.file.Path>recentFiles()
-
-
-
Method Detail
-
recentFiles
java.util.List<java.nio.file.Path> recentFiles()
- Returns:
- The list of recent files to be shown in the file chooser
-
fileSystem
java.nio.file.FileSystem fileSystem()
- Returns:
- The file system traversed by the file chooser
-
initialDirectory
java.util.Optional<java.nio.file.Path> initialDirectory()
- Returns:
- The starting directory
-
fileImageSet
java.util.Optional<JWFileImageSetType> fileImageSet()
The image set used to select images for the file chooser UI. If no set is specified here, a default set of images and icons will be used.- Returns:
- An image set
-
cssStylesheet
java.util.Optional<java.net.URL> cssStylesheet()
The CSS stylesheet that will be added to the file chooser UI.- Returns:
- The URL of the CSS stylesheet
-
fileFilters
java.util.List<JWFileChooserFilterType> fileFilters()
- Returns:
- The list of file filters
-
allowDirectoryCreation
@Default default boolean allowDirectoryCreation()
- Returns:
trueif the UI will allow the creation of directories
-
fileTimeFormatter
@Default default java.time.format.DateTimeFormatter fileTimeFormatter()
- Returns:
- The date/time formatter used to display file times
-
fileSizeFormatter
@Default default JWFileSizeFormatterType fileSizeFormatter()
- Returns:
- The formatter used to display file sizes
-
action
@Default default JWFileChooserAction action()
- Returns:
- The action that the user is performing
-
checkPreconditions
@Check default void checkPreconditions()
Check preconditions for the type.
-
-