Class BreadcrumbBarContentProvider<T>
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.bcb.BreadcrumbBarContentProvider<T>
-
- Type Parameters:
T
- Type of data associated with each breadcrumb bar item.
- Direct Known Subclasses:
BreadcrumbFileSelector.FileSystemContentProvider
,BreadcrumbTreeAdapterSelector.TreeContentProvider
public abstract class BreadcrumbBarContentProvider<T> extends java.lang.Object
Content provider for aJBreadcrumbBar
.
-
-
Constructor Summary
Constructors Constructor Description BreadcrumbBarContentProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getLeafContent(T leaf)
Returns the input stream with the leaf content.java.util.List<BreadcrumbItem<T>>
getLeaves(java.util.List<BreadcrumbItem<T>> path)
Returns the leaf elements that correspond to the specified path.java.util.List<BreadcrumbItem<T>>
getPathChoices(java.util.List<BreadcrumbItem<T>> path)
Returns the choice elements that correspond to the specified path.
-
-
-
Method Detail
-
getPathChoices
public java.util.List<BreadcrumbItem<T>> getPathChoices(java.util.List<BreadcrumbItem<T>> path)
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- Parameters:
path
- Breadcrumb bar path.- Returns:
- The choice elements that correspond to the specified path
-
getLeaves
public java.util.List<BreadcrumbItem<T>> getLeaves(java.util.List<BreadcrumbItem<T>> path)
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.- Parameters:
path
- Breadcrumb bar path.- Returns:
- The leaf elements that correspond to the specified path
-
getLeafContent
public java.io.InputStream getLeafContent(T leaf)
Returns the input stream with the leaf content. Some implementations may returnnull
if this is not applicable.- Parameters:
leaf
- Leaf.- Returns:
- Input stream with the leaf content. May be
null
if this is not applicable.
-
-