Class BreadcrumbFileSelector

    • Field Detail

      • useNativeIcons

        protected boolean useNativeIcons
        If true, the path selectors will use native icons.
    • Constructor Detail

      • BreadcrumbFileSelector

        public BreadcrumbFileSelector()
        Creates a new breadcrumb bar file selector that uses native icons and the default file system view.
      • BreadcrumbFileSelector

        public BreadcrumbFileSelector​(boolean useNativeIcons)
        Creates a new breadcrumb bar file selector that uses the default file system view.
        Parameters:
        useNativeIcons - If true, the path selectors will use native icons.
      • BreadcrumbFileSelector

        public BreadcrumbFileSelector​(FileSystemView fileSystemView,
                                      boolean useNativeIcons)
        Creates a new breadcrumb bar file selector.
        Parameters:
        fileSystemView - File system view.
        useNativeIcons - If true, the path selectors will use native icons.
    • Method Detail

      • setUseNativeIcons

        public void setUseNativeIcons​(boolean useNativeIcons)
        Sets indication whether the path selectors should use native icons.
        Parameters:
        useNativeIcons - If true, the path selectors will use native icons.
      • setPath

        public void setPath​(File dir)
        Sets the selected path based of the specified file. If this file is either null or not a directory, the home directory is selected.
        Parameters:
        dir - Points to a directory to be selected.