Class BreadcrumbFileSelector

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class BreadcrumbFileSelector extends JBreadcrumbBar<File>
Breadcrumb bar that allows browsing the local file system.
See Also:
  • Field Details

  • Constructor Details

    • BreadcrumbFileSelector

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

      public BreadcrumbFileSelector(FileSystemView fileSystemView, BreadcrumbFileSelector.IconProvider iconProvider, BreadcrumbBarPresentationModel presentationModel)
      Creates a new breadcrumb bar file selector.
      Parameters:
      fileSystemView - File system view.
      iconProvider - Icon provider.
  • Method Details

    • 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.