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

    • useNativeIcons

      protected boolean useNativeIcons
      If true, the path selectors will use native icons.
  • 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(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 Details

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