org.pushingpixels.flamingo.api.bcb.core
public static class BreadcrumbFileSelector.DirCallback extends BreadcrumbBarCallBack<File>
BreadcrumbBarCallBack
.Modifier and Type | Field and Description |
---|---|
protected FileSystemView |
fsv
File system view.
|
protected boolean |
useNativeIcons
If
true , the path selectors will use native icons. |
throwsExceptions
Constructor and Description |
---|
BreadcrumbFileSelector.DirCallback(boolean useNativeIcons)
Creates a new callback.
|
BreadcrumbFileSelector.DirCallback(FileSystemView fileSystemView,
boolean useNativeIcons)
Creates a new callback.
|
Modifier and Type | Method and 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.
|
setThrowsExceptions
protected FileSystemView fsv
protected boolean useNativeIcons
true
, the path selectors will use native icons.public BreadcrumbFileSelector.DirCallback(boolean useNativeIcons)
useNativeIcons
- If true
, the path selectors will use native
icons.public BreadcrumbFileSelector.DirCallback(FileSystemView fileSystemView, boolean useNativeIcons)
fileSystemView
- File system view to use.useNativeIcons
- If true
, the path selectors will use native
icons.public void setup()
BreadcrumbBarCallBack
setup
in class BreadcrumbBarCallBack<File>
public List<StringValuePair<File>> getPathChoices(List<BreadcrumbItem<File>> path)
BreadcrumbBarCallBack
null
should be returned. If path is
null
, the "root" elements should be returnedgetPathChoices
in class BreadcrumbBarCallBack<File>
path
- Breadcrumb bar path.public List<StringValuePair<File>> getLeafs(List<BreadcrumbItem<File>> path)
BreadcrumbBarCallBack
null
should be returned. If path is
null
, the "root" elements should be returnedgetLeafs
in class BreadcrumbBarCallBack<File>
path
- Breadcrumb bar path.public InputStream getLeafContent(File leaf)
BreadcrumbBarCallBack
null
if this is not applicable.getLeafContent
in class BreadcrumbBarCallBack<File>
leaf
- Leaf.null
if
this is not applicable.