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 FileSystemViewFile system view.protected booleanIftrue, 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.voidsetup()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:BreadcrumbBarCallBackSets up the callback.- Overrides:
setupin classBreadcrumbBarCallBack<File>
-
getPathChoices
Description copied from class:BreadcrumbBarCallBackReturns the choice element that corresponds to the specified path. If the path is empty,nullshould be returned. If path isnull, the "root" elements should be returned- Overrides:
getPathChoicesin classBreadcrumbBarCallBack<File>- Parameters:
path- Breadcrumb bar path.- Returns:
- The choice element that corresponds to the specified path
-
getLeafs
Description copied from class:BreadcrumbBarCallBackReturns the choice element that corresponds to the specified path. If the path is empty,nullshould be returned. If path isnull, the "root" elements should be returned- Overrides:
getLeafsin classBreadcrumbBarCallBack<File>- Parameters:
path- Breadcrumb bar path.- Returns:
- The choice element that corresponds to the specified path
-
getLeafContent
Description copied from class:BreadcrumbBarCallBackReturns the input stream with the leaf content. Some implementations may returnnullif this is not applicable.- Overrides:
getLeafContentin classBreadcrumbBarCallBack<File>- Parameters:
leaf- Leaf.- Returns:
- Input stream with the leaf content. May be
nullif this is not applicable.
-