Class BreadcrumbFileSelector.DirCallback
- java.lang.Object
-
- org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack<File>
-
- org.pushingpixels.flamingo.api.bcb.core.BreadcrumbFileSelector.DirCallback
-
- Enclosing class:
- BreadcrumbFileSelector
public static class BreadcrumbFileSelector.DirCallback extends BreadcrumbBarCallBack<File>
Local file system specific implementation of theBreadcrumbBarCallBack
.
-
-
Field Summary
Fields Modifier and Type Field Description protected FileSystemView
fsv
File system view.protected boolean
useNativeIcons
Iftrue
, the path selectors will use native icons.-
Fields inherited from class org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack
throwsExceptions
-
-
Constructor Summary
Constructors Constructor Description DirCallback(boolean useNativeIcons)
Creates a new callback.DirCallback(FileSystemView fileSystemView, boolean useNativeIcons)
Creates a new callback.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getLeafContent(File leaf)
Returns the input stream with the leaf content.List<StringValuePair<File>>
getLeafs(List<BreadcrumbItem<File>> path)
Returns the choice element that corresponds to the specified path.List<StringValuePair<File>>
getPathChoices(List<BreadcrumbItem<File>> path)
Returns the choice element that corresponds to the specified path.void
setup()
Sets up the callback.-
Methods inherited from class org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack
setThrowsExceptions
-
-
-
-
Field Detail
-
fsv
protected FileSystemView fsv
File system view.
-
useNativeIcons
protected boolean useNativeIcons
Iftrue
, the path selectors will use native icons.
-
-
Constructor Detail
-
DirCallback
public DirCallback(boolean useNativeIcons)
Creates a new callback.- Parameters:
useNativeIcons
- Iftrue
, the path selectors will use native icons.
-
DirCallback
public DirCallback(FileSystemView fileSystemView, boolean useNativeIcons)
Creates a new callback.- Parameters:
fileSystemView
- File system view to use.useNativeIcons
- Iftrue
, the path selectors will use native icons.
-
-
Method Detail
-
setup
public void setup()
Description copied from class:BreadcrumbBarCallBack
Sets up the callback.- Overrides:
setup
in classBreadcrumbBarCallBack<File>
-
getPathChoices
public List<StringValuePair<File>> getPathChoices(List<BreadcrumbItem<File>> path)
Description copied from class:BreadcrumbBarCallBack
Returns the choice element that corresponds 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 classBreadcrumbBarCallBack<File>
- Parameters:
path
- Breadcrumb bar path.- Returns:
- The choice element that corresponds to the specified path
-
getLeafs
public List<StringValuePair<File>> getLeafs(List<BreadcrumbItem<File>> path)
Description copied from class:BreadcrumbBarCallBack
Returns the choice element that corresponds to the specified path. If the path is empty,null
should be returned. If path isnull
, the "root" elements should be returned- Overrides:
getLeafs
in classBreadcrumbBarCallBack<File>
- Parameters:
path
- Breadcrumb bar path.- Returns:
- The choice element that corresponds to the specified path
-
getLeafContent
public InputStream getLeafContent(File leaf)
Description copied from class:BreadcrumbBarCallBack
Returns the input stream with the leaf content. Some implementations may returnnull
if this is not applicable.- Overrides:
getLeafContent
in classBreadcrumbBarCallBack<File>
- Parameters:
leaf
- Leaf.- Returns:
- Input stream with the leaf content. May be
null
if this is not applicable.
-
-