Class CompositeBreadcrumb
java.lang.Object
com.atlassian.confluence.util.breadcrumbs.AbstractBreadcrumb
com.atlassian.confluence.util.breadcrumbs.CompositeBreadcrumb
- All Implemented Interfaces:
Breadcrumb
-
Field Summary
Fields inherited from class com.atlassian.confluence.util.breadcrumbs.AbstractBreadcrumb
cssClass, displayTitle, filterTrailingBreadcrumb, MAX_BREADCRUMBS, target, title, tooltip
-
Constructor Summary
ConstructorDescriptionCompositeBreadcrumb
(List<Breadcrumb> originalTrail, Breadcrumb topmostParent) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<Breadcrumb>
Returns a list of breadcrumbs for the current breadcrumb.protected Breadcrumb
Gets the parent breadcrumb.void
setFilterTrailingBreadcrumb
(boolean filterTrailingBreadcrumb) Override the breadcrumb's default value for whether or not the last breadcrumb in the trail should be filtered out.Methods inherited from class com.atlassian.confluence.util.breadcrumbs.AbstractBreadcrumb
filterTrailingBreadcrumb, getBreadcrumbsTrail, getCssClass, getDisplayTitle, getTarget, getTitle, getTooltip, setCssClass, toString
-
Constructor Details
-
CompositeBreadcrumb
-
-
Method Details
-
getParent
Description copied from class:AbstractBreadcrumb
Gets the parent breadcrumb. By default the dashboard breadcrumb is returned.- Specified by:
getParent
in classAbstractBreadcrumb
- Returns:
- the parent breadcrumb.
-
getMyCrumbs
Description copied from class:AbstractBreadcrumb
Returns a list of breadcrumbs for the current breadcrumb. For example, theBlogPostBreadcrumb
overrides this method and returns 4 crumbs altogether to represent itself: 2007 > 11 > 28 > BlogTitle.By default my crumbs will be a list with size 1, containing itself, unless the current breadcrumb has no title.
- Overrides:
getMyCrumbs
in classAbstractBreadcrumb
-
setFilterTrailingBreadcrumb
public void setFilterTrailingBreadcrumb(boolean filterTrailingBreadcrumb) Description copied from interface:Breadcrumb
Override the breadcrumb's default value for whether or not the last breadcrumb in the trail should be filtered out.- Specified by:
setFilterTrailingBreadcrumb
in interfaceBreadcrumb
- Overrides:
setFilterTrailingBreadcrumb
in classAbstractBreadcrumb
- Parameters:
filterTrailingBreadcrumb
- true if the last breadcrumb in the trail should be filtered out.
-