public static class BreadcrumbFileSelector.DirCallback extends BreadcrumbBarCallBack<java.io.File>
BreadcrumbBarCallBack
.Modifier and Type | Field and Description |
---|---|
protected javax.swing.filechooser.FileSystemView |
fsv
File system view.
|
protected boolean |
useNativeIcons
If
true , the path selectors will use native icons. |
throwsExceptions
Constructor and Description |
---|
DirCallback(boolean useNativeIcons)
Creates a new callback.
|
DirCallback(javax.swing.filechooser.FileSystemView fileSystemView,
boolean useNativeIcons)
Creates a new callback.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getLeafContent(java.io.File leaf)
Returns the input stream with the leaf content.
|
java.util.List<StringValuePair<java.io.File>> |
getLeafs(java.util.List<BreadcrumbItem<java.io.File>> path)
Returns the choice element that corresponds to the specified path.
|
java.util.List<StringValuePair<java.io.File>> |
getPathChoices(java.util.List<BreadcrumbItem<java.io.File>> path)
Returns the choice element that corresponds to the specified path.
|
void |
setup()
Sets up the callback.
|
setThrowsExceptions
protected javax.swing.filechooser.FileSystemView fsv
protected boolean useNativeIcons
true
, the path selectors will use native icons.public DirCallback(boolean useNativeIcons)
useNativeIcons
- If true
, the path selectors will use native
icons.public DirCallback(javax.swing.filechooser.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<java.io.File>
public java.util.List<StringValuePair<java.io.File>> getPathChoices(java.util.List<BreadcrumbItem<java.io.File>> path)
BreadcrumbBarCallBack
null
should be returned. If path is
null
, the "root" elements should be returnedgetPathChoices
in class BreadcrumbBarCallBack<java.io.File>
path
- Breadcrumb bar path.public java.util.List<StringValuePair<java.io.File>> getLeafs(java.util.List<BreadcrumbItem<java.io.File>> path)
BreadcrumbBarCallBack
null
should be returned. If path is
null
, the "root" elements should be returnedgetLeafs
in class BreadcrumbBarCallBack<java.io.File>
path
- Breadcrumb bar path.public java.io.InputStream getLeafContent(java.io.File leaf)
BreadcrumbBarCallBack
null
if this is not applicable.getLeafContent
in class BreadcrumbBarCallBack<java.io.File>
leaf
- Leaf.null
if
this is not applicable.