com.atlassian.confluence.util.breadcrumbs
Class CompositeBreadcrumb
java.lang.Object
com.atlassian.confluence.util.breadcrumbs.AbstractBreadcrumb
com.atlassian.confluence.util.breadcrumbs.CompositeBreadcrumb
- All Implemented Interfaces:
- Breadcrumb
public class CompositeBreadcrumb
- extends AbstractBreadcrumb
Method Summary |
protected List<Breadcrumb> |
getMyCrumbs()
Returns a list of breadcrumbs for the current breadcrumb. |
protected Breadcrumb |
getParent()
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. |
CompositeBreadcrumb
public CompositeBreadcrumb(List<Breadcrumb> originalTrail,
Breadcrumb topmostParent)
getParent
protected Breadcrumb getParent()
- Description copied from class:
AbstractBreadcrumb
- Gets the parent breadcrumb. By default the dashboard breadcrumb is returned.
- Specified by:
getParent
in class AbstractBreadcrumb
- Returns:
- the parent breadcrumb.
getMyCrumbs
protected List<Breadcrumb> getMyCrumbs()
- Description copied from class:
AbstractBreadcrumb
- Returns a list of breadcrumbs for the current breadcrumb. For example, the
BlogPostBreadcrumb
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 class AbstractBreadcrumb
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 interface Breadcrumb
- Overrides:
setFilterTrailingBreadcrumb
in class AbstractBreadcrumb
- Parameters:
filterTrailingBreadcrumb
- true if the last breadcrumb in the trail should be filtered out.
Copyright © 2003-2013 Atlassian. All Rights Reserved.