public static class BreadcrumbFileSelector.DirCallback extends BreadcrumbBarCallBack<java.io.File>
BreadcrumbBarCallBack.| Modifier and Type | Field | Description |
|---|---|---|
protected javax.swing.filechooser.FileSystemView |
fsv |
File system view.
|
protected boolean |
useNativeIcons |
If
true, the path selectors will use native icons. |
throwsExceptions| Constructor | Description |
|---|---|
DirCallback(boolean useNativeIcons) |
Creates a new callback.
|
DirCallback(javax.swing.filechooser.FileSystemView fileSystemView,
boolean useNativeIcons) |
Creates a new callback.
|
| Modifier and Type | Method | 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.
|
setThrowsExceptionsprotected 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()
BreadcrumbBarCallBacksetup in class BreadcrumbBarCallBack<java.io.File>public java.util.List<StringValuePair<java.io.File>> getPathChoices(java.util.List<BreadcrumbItem<java.io.File>> path)
BreadcrumbBarCallBacknull 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)
BreadcrumbBarCallBacknull 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)
BreadcrumbBarCallBacknull if this is not applicable.getLeafContent in class BreadcrumbBarCallBack<java.io.File>leaf - Leaf.null if
this is not applicable.