Class BreadcrumbTreeAdapterSelector.TreeCallback
java.lang.Object
org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack<Object>
org.pushingpixels.flamingo.api.bcb.core.BreadcrumbTreeAdapterSelector.TreeCallback
- Enclosing class:
- BreadcrumbTreeAdapterSelector
public static class BreadcrumbTreeAdapterSelector.TreeCallback
extends BreadcrumbBarCallBack<Object>
Tree-adapter specific implementation of the
BreadcrumbBarCallBack
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIftrue, the first selector shows the tree root node.The corresponding tree adapter.protected TreeModelThe corresponding tree model.Fields inherited from class org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack
throwsExceptions -
Constructor Summary
ConstructorsConstructorDescriptionTreeCallback(TreeModel treeModel, BreadcrumbTreeAdapterSelector.TreeAdapter treeAdapter, boolean isRootVisible) Creates the callback. -
Method Summary
Modifier and TypeMethodDescriptiongetLeafContent(Object leaf) Returns the input stream with the leaf content.getLeafs(List<BreadcrumbItem<Object>> path) Returns the choice element that corresponds to the specified path.getPathChoices(List<BreadcrumbItem<Object>> path) Returns the choice element that corresponds to the specified path.Methods inherited from class org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack
setThrowsExceptions, setup
-
Field Details
-
treeModel
The corresponding tree model. -
treeAdapter
The corresponding tree adapter. Can not benull. -
isRootVisible
protected boolean isRootVisibleIftrue, the first selector shows the tree root node. Iffalse, the first selector shows the tree root child nodes.
-
-
Constructor Details
-
TreeCallback
public TreeCallback(TreeModel treeModel, BreadcrumbTreeAdapterSelector.TreeAdapter treeAdapter, boolean isRootVisible) Creates the callback.- Parameters:
treeModel- The corresponding tree model.treeAdapter- The corresponding tree adapter. Can not benull.isRootVisible- Iftrue, the first selector shows the tree root node. Iffalse, the first selector shows the tree root child nodes.
-
-
Method Details
-
getPathChoices
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<Object>- Parameters:
path- Breadcrumb bar path.- Returns:
- The choice element that corresponds to the specified path
-
getLeafs
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<Object>- Parameters:
path- Breadcrumb bar path.- Returns:
- The choice element that corresponds to the specified path
-
getLeafContent
Description copied from class:BreadcrumbBarCallBackReturns the input stream with the leaf content. Some implementations may returnnullif this is not applicable.- Overrides:
getLeafContentin classBreadcrumbBarCallBack<Object>- Parameters:
leaf- Leaf.- Returns:
- Input stream with the leaf content. May be
nullif this is not applicable.
-