Class BreadcrumbFileSelector.FileSystemContentProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.filechooser.FileSystemView fsv
      File system view.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getLeafContent​(java.io.File leaf)
      Returns the input stream with the leaf content.
      java.util.List<BreadcrumbItem<java.io.File>> getLeaves​(java.util.List<BreadcrumbItem<java.io.File>> path)
      Returns the leaf elements that correspond to the specified path.
      java.util.List<BreadcrumbItem<java.io.File>> getPathChoices​(java.util.List<BreadcrumbItem<java.io.File>> path)
      Returns the choice elements that correspond to the specified path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fsv

        private final javax.swing.filechooser.FileSystemView fsv
        File system view.
    • Constructor Detail

      • FileSystemContentProvider

        public FileSystemContentProvider()
        Creates a new callback.
      • FileSystemContentProvider

        public FileSystemContentProvider​(javax.swing.filechooser.FileSystemView fileSystemView)
        Creates a new callback.
        Parameters:
        fileSystemView - File system view to use.
    • Method Detail

      • getPathChoices

        public java.util.List<BreadcrumbItem<java.io.File>> getPathChoices​(java.util.List<BreadcrumbItem<java.io.File>> path)
        Description copied from class: BreadcrumbBarContentProvider
        Returns the choice elements that correspond to the specified path. If the path is empty, null should be returned. If path is null, the "root" elements should be returned
        Overrides:
        getPathChoices in class BreadcrumbBarContentProvider<java.io.File>
        Parameters:
        path - Breadcrumb bar path.
        Returns:
        The choice elements that correspond to the specified path
      • getLeaves

        public java.util.List<BreadcrumbItem<java.io.File>> getLeaves​(java.util.List<BreadcrumbItem<java.io.File>> path)
        Description copied from class: BreadcrumbBarContentProvider
        Returns the leaf elements that correspond to the specified path. If the path is empty, null should be returned. If path is null, leaf content of the "root" elements should be returned. Most probably, if your root is more than one element, you should be returning null in here.
        Overrides:
        getLeaves in class BreadcrumbBarContentProvider<java.io.File>
        Parameters:
        path - Breadcrumb bar path.
        Returns:
        The leaf elements that correspond to the specified path
      • getLeafContent

        public java.io.InputStream getLeafContent​(java.io.File leaf)
        Description copied from class: BreadcrumbBarContentProvider
        Returns the input stream with the leaf content. Some implementations may return null if this is not applicable.
        Overrides:
        getLeafContent in class BreadcrumbBarContentProvider<java.io.File>
        Parameters:
        leaf - Leaf.
        Returns:
        Input stream with the leaf content. May be null if this is not applicable.