public static class BreadcrumbTreeAdapterSelector.TreeCallback extends BreadcrumbBarCallBack<java.lang.Object>
BreadcrumbBarCallBack
.Modifier and Type | Field | Description |
---|---|---|
protected boolean |
isRootVisible |
If
true , the first selector shows the tree root node. |
protected BreadcrumbTreeAdapterSelector.TreeAdapter |
treeAdapter |
The corresponding tree adapter.
|
protected javax.swing.tree.TreeModel |
treeModel |
The corresponding tree model.
|
throwsExceptions
Constructor | Description |
---|---|
TreeCallback(javax.swing.tree.TreeModel treeModel,
BreadcrumbTreeAdapterSelector.TreeAdapter treeAdapter,
boolean isRootVisible) |
Creates the callback.
|
Modifier and Type | Method | Description |
---|---|---|
java.io.InputStream |
getLeafContent(java.lang.Object leaf) |
Returns the input stream with the leaf content.
|
java.util.List<StringValuePair<java.lang.Object>> |
getLeafs(java.util.List<BreadcrumbItem<java.lang.Object>> path) |
Returns the choice element that corresponds to the specified path.
|
java.util.List<StringValuePair<java.lang.Object>> |
getPathChoices(java.util.List<BreadcrumbItem<java.lang.Object>> path) |
Returns the choice element that corresponds to the specified path.
|
setThrowsExceptions, setup
protected javax.swing.tree.TreeModel treeModel
protected BreadcrumbTreeAdapterSelector.TreeAdapter treeAdapter
null
.protected boolean isRootVisible
true
, the first selector shows the tree root node. If
false
, the first selector shows the tree root child
nodes.public TreeCallback(javax.swing.tree.TreeModel treeModel, BreadcrumbTreeAdapterSelector.TreeAdapter treeAdapter, boolean isRootVisible)
treeModel
- The corresponding tree model.treeAdapter
- The corresponding tree adapter. Can not be
null
.isRootVisible
- If true
, the first selector shows the tree
root node. If false
, the first selector shows
the tree root child nodes.public java.util.List<StringValuePair<java.lang.Object>> getPathChoices(java.util.List<BreadcrumbItem<java.lang.Object>> path)
BreadcrumbBarCallBack
null
should be returned. If path is
null
, the "root" elements should be returnedgetPathChoices
in class BreadcrumbBarCallBack<java.lang.Object>
path
- Breadcrumb bar path.public java.util.List<StringValuePair<java.lang.Object>> getLeafs(java.util.List<BreadcrumbItem<java.lang.Object>> path)
BreadcrumbBarCallBack
null
should be returned. If path is
null
, the "root" elements should be returnedgetLeafs
in class BreadcrumbBarCallBack<java.lang.Object>
path
- Breadcrumb bar path.public java.io.InputStream getLeafContent(java.lang.Object leaf)
BreadcrumbBarCallBack
null
if this is not applicable.getLeafContent
in class BreadcrumbBarCallBack<java.lang.Object>
leaf
- Leaf.null
if
this is not applicable.