com.atlassian.breadcrumbs.chain
Class ChainBranchesCrumb
java.lang.Object
com.atlassian.breadcrumbs.BaseCrumb
com.atlassian.breadcrumbs.chain.ChainBranchesCrumb
- All Implemented Interfaces:
- BreadCrumb
public class ChainBranchesCrumb
- extends BaseCrumb
Constructor Summary |
ChainBranchesCrumb(javax.servlet.http.HttpServletRequest request,
com.opensymphony.xwork2.Action action)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainBranchesCrumb
public ChainBranchesCrumb(javax.servlet.http.HttpServletRequest request,
com.opensymphony.xwork2.Action action)
isShown
public boolean isShown()
- Description copied from interface:
BreadCrumb
- Should the
BreadCrumb
be shown?
- Returns:
- true if it should be displayed
isCurrentPage
public boolean isCurrentPage()
- Description copied from interface:
BreadCrumb
- Returns true if the curren
BreadCrumb
should be selected
- Returns:
- true or false
getLabel
public String getLabel()
- Description copied from interface:
BreadCrumb
- Returns the visible label for the bread crumb
- Returns:
- string, cannot be null
getUrl
public String getUrl()
- Description copied from interface:
BreadCrumb
- Returns the URL for the given label
- Returns:
- URL of label. No context is added
getChildCrumbs
public Collection<BreadCrumb> getChildCrumbs()
- Description copied from interface:
BreadCrumb
- Returns the children crumbs. This is not as sinister as it sounds! The bread crumb will iterate throught
each chil crumb until one returns true for
BreadCrumb.isShown()
and then it'll follow down that crumb tree
- Returns:
Collection
of BreadCrumb
objects. Collections.emptyList()
if no child crumbs
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.