Package com.atlassian.breadcrumbs
Interface BreadCrumb
- All Known Implementing Classes:
BaseCrumb,BuildCrumb,BuildResultSummaryCrumb,ChainBranchesCrumb,ChainConfigCrumb,ChainCrumb,ChainResultSummaryCrumb,JobConfigCrumb,JobResultCrumb,ProjectCrumb
public interface BreadCrumb
An interface that represents a single item in a series of breadcrumbs
-
Method Summary
Modifier and TypeMethodDescriptionReturns a key as an access keyReturns the children crumbs.@Nullable StringgetLabel()Returns the visible label for the bread crumb@Nullable StringgetUrl()Returns the URL for the given labelbooleanReturns true if the currenBreadCrumbshould be selectedbooleanisShown()Should theBreadCrumbbe shown?
-
Method Details
-
isShown
boolean isShown()Should theBreadCrumbbe shown?- Returns:
- true if it should be displayed
-
isCurrentPage
boolean isCurrentPage()Returns true if the currenBreadCrumbshould be selected- Returns:
- true or false
-
getLabel
Returns the visible label for the bread crumb- Returns:
- string, cannot be null
- Throws:
ClassCastException- possible ifisShown()doesn't hold true
-
getUrl
Returns the URL for the given label- Returns:
- URL of label. No context is added
- Throws:
ClassCastException- possible ifisShown()doesn't hold true
-
getChildCrumbs
Collection<BreadCrumb> getChildCrumbs()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 forisShown()and then it'll follow down that crumb tree- Returns:
CollectionofBreadCrumbobjects.Collections.emptyList()if no child crumbs
-
getAccessKey
String getAccessKey()Returns a key as an access key- Returns:
- null if doesn't exist
-