Class BreadcrumbFileSelector.FileSystemContentProvider
java.lang.Object
org.pushingpixels.radiance.component.api.bcb.BreadcrumbBarContentProvider<File>
org.pushingpixels.radiance.component.api.bcb.core.BreadcrumbFileSelector.FileSystemContentProvider
- Enclosing class:
BreadcrumbFileSelector
private class BreadcrumbFileSelector.FileSystemContentProvider
extends BreadcrumbBarContentProvider<File>
Local file system specific implementation of the
BreadcrumbBarContentProvider
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new callback.FileSystemContentProvider
(FileSystemView fileSystemView) Creates a new callback. -
Method Summary
Modifier and TypeMethodDescriptiongetLeafContent
(File leaf) Returns the input stream with the leaf content.getLeaves
(List<BreadcrumbItem<File>> path) Returns the leaf elements that correspond to the specified path.getPathChoices
(List<BreadcrumbItem<File>> path) Returns the choice elements that correspond to the specified path.
-
Field Details
-
fsv
File system view.
-
-
Constructor Details
-
FileSystemContentProvider
public FileSystemContentProvider()Creates a new callback. -
FileSystemContentProvider
Creates a new callback.- Parameters:
fileSystemView
- File system view to use.
-
-
Method Details
-
getPathChoices
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<File>
- Parameters:
path
- Breadcrumb bar path.- Returns:
- The choice elements that correspond to the specified path
-
getLeaves
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<File>
- Parameters:
path
- Breadcrumb bar path.- Returns:
- The leaf elements that correspond to the specified path
-
getLeafContent
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<File>
- Parameters:
leaf
- Leaf.- Returns:
- Input stream with the leaf content. May be
null
if this is not applicable.
-