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 FileSystemViewfsvFile system view.protected booleanuseNativeIconsIftrue, 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 InputStreamgetLeafContent(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.voidsetup()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:BreadcrumbBarCallBackSets up the callback.- Overrides:
setupin classBreadcrumbBarCallBack<File>
-
getPathChoices
public List<StringValuePair<File>> getPathChoices(List<BreadcrumbItem<File>> path)
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
public List<StringValuePair<File>> getLeafs(List<BreadcrumbItem<File>> path)
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
public InputStream getLeafContent(File leaf)
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.
-
-