Class BreadcrumbFileSelector.DirCallback
java.lang.Object
org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack<File>
org.pushingpixels.flamingo.api.bcb.core.BreadcrumbFileSelector.DirCallback
- Enclosing class:
- BreadcrumbFileSelector
Local file system specific implementation of the
BreadcrumbBarCallBack
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileSystemView
File system view.protected boolean
Iftrue
, the path selectors will use native icons.Fields inherited from class org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack
throwsExceptions
-
Constructor Summary
ConstructorsConstructorDescriptionDirCallback
(boolean useNativeIcons) Creates a new callback.DirCallback
(FileSystemView fileSystemView, boolean useNativeIcons) Creates a new callback. -
Method Summary
Modifier and TypeMethodDescriptiongetLeafContent
(File leaf) Returns the input stream with the leaf content.getLeafs
(List<BreadcrumbItem<File>> path) Returns the choice element that corresponds to the specified path.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 Details
-
fsv
File system view. -
useNativeIcons
protected boolean useNativeIconsIftrue
, the path selectors will use native icons.
-
-
Constructor Details
-
DirCallback
public DirCallback(boolean useNativeIcons) Creates a new callback.- Parameters:
useNativeIcons
- Iftrue
, the path selectors will use native icons.
-
DirCallback
Creates a new callback.- Parameters:
fileSystemView
- File system view to use.useNativeIcons
- Iftrue
, the path selectors will use native icons.
-
-
Method Details
-
setup
public void setup()Description copied from class:BreadcrumbBarCallBack
Sets up the callback.- Overrides:
setup
in classBreadcrumbBarCallBack<File>
-
getPathChoices
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
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
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.
-