Interface JWFileChooserConfigurationType

  • All Known Implementing Classes:
    JWFileChooserConfiguration

    @Immutable
    public interface JWFileChooserConfigurationType
    The configuration information used to instantiate file choosers. File choosers have a wide range of configurable properties. The only mandatory configuration parameter is the fileSystem(), because this defines the initial filesystem used for file selection.
    • 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
      • allowDirectoryCreation

        @Default
        default boolean allowDirectoryCreation()
        Returns:
        true if 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.