Class BreadcrumbFileSelector.FileSystemContentProvider
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.bcb.BreadcrumbBarContentProvider<java.io.File>
-
- org.pushingpixels.radiance.component.api.bcb.core.BreadcrumbFileSelector.FileSystemContentProvider
-
- Enclosing class:
- BreadcrumbFileSelector
private class BreadcrumbFileSelector.FileSystemContentProvider extends BreadcrumbBarContentProvider<java.io.File>
Local file system specific implementation of theBreadcrumbBarContentProvider
.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.filechooser.FileSystemView
fsv
File system view.
-
Constructor Summary
Constructors Constructor Description FileSystemContentProvider()
Creates a new callback.FileSystemContentProvider(javax.swing.filechooser.FileSystemView fileSystemView)
Creates a new callback.
-
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.
-
-
-
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 isnull
, the "root" elements should be returned- Overrides:
getPathChoices
in classBreadcrumbBarContentProvider<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 isnull
, 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 classBreadcrumbBarContentProvider<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 returnnull
if this is not applicable.- Overrides:
getLeafContent
in classBreadcrumbBarContentProvider<java.io.File>
- Parameters:
leaf
- Leaf.- Returns:
- Input stream with the leaf content. May be
null
if this is not applicable.
-
-