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.FileSystemViewfsvFile 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.InputStreamgetLeafContent(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:BreadcrumbBarContentProviderReturns the choice elements that correspond to the specified path. If the path is empty,nullshould be returned. If path isnull, the "root" elements should be returned- Overrides:
getPathChoicesin 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:BreadcrumbBarContentProviderReturns the leaf elements that correspond to the specified path. If the path is empty,nullshould 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:
getLeavesin 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:BreadcrumbBarContentProviderReturns the input stream with the leaf content. Some implementations may returnnullif this is not applicable.- Overrides:
getLeafContentin classBreadcrumbBarContentProvider<java.io.File>- Parameters:
leaf- Leaf.- Returns:
- Input stream with the leaf content. May be
nullif this is not applicable.
-
-