Package com.io7m.jwheatsheaf.api
Class JWFileChooserConfigurationDefaults
java.lang.Object
com.io7m.jwheatsheaf.api.JWFileChooserConfigurationDefaults
public final class JWFileChooserConfigurationDefaults
extends java.lang.Object
Default values used for file chooser configurations.
-
Method Summary
Modifier and Type Method Description static java.util.function.Function<java.nio.file.Path,java.lang.Boolean>
fileSelectionMode()
The default file selection mode.static JWFileSizeFormatterType
fileSizeFormatter()
This is a basic file size formatter that displays fractional kilobyte, megabyte, gigabyte, and terabyte values depending on sizes.static java.time.format.DateTimeFormatter
fileTimeFormatter()
The default date/time formatter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
fileTimeFormatter
public static java.time.format.DateTimeFormatter fileTimeFormatter()The default date/time formatter. This is essentially ISO-8601 format without microseconds.- Returns:
- A date/time formatter
-
fileSelectionMode
public static java.util.function.Function<java.nio.file.Path,java.lang.Boolean> fileSelectionMode()The default file selection mode. By default, any type of file (including directories) may be selected.- Returns:
- A function that dictates whether the selected items may be returned.
-
fileSizeFormatter
This is a basic file size formatter that displays fractional kilobyte, megabyte, gigabyte, and terabyte values depending on sizes.- Returns:
- A size formatter
-