Package com.atlassian.breadcrumbs
Class BuildCrumb
- java.lang.Object
-
- com.atlassian.breadcrumbs.BaseCrumb
-
- com.atlassian.breadcrumbs.BuildCrumb
-
- All Implemented Interfaces:
BreadCrumb
public class BuildCrumb extends BaseCrumb
Crumb for a singleBuildableobject.
-
-
Field Summary
-
Fields inherited from class com.atlassian.breadcrumbs.BaseCrumb
action, BROWSE_PREFIX, NUMBER_PREFIX, request
-
-
Constructor Summary
Constructors Constructor Description BuildCrumb(javax.servlet.http.HttpServletRequest request, com.opensymphony.xwork2.Action action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<BreadCrumb>getChildCrumbs()Returns the children crumbs.StringgetId()StringgetLabel()Returns the visible label for the bread crumbStringgetTitle()StringgetUrl()Returns the URL for the given labelbooleanisCurrentPage()Returns true if the currenBreadCrumbshould be selectedbooleanisDisabled()booleanisShown()Should theBreadCrumbbe shown?-
Methods inherited from class com.atlassian.breadcrumbs.BaseCrumb
createUrl, createUrl, getAccessKey, getLabelWithAccessKeyUnderlined, getText, isAnyChildShown, isInCurrentPath, setAction, setRequest
-
-
-
-
Method Detail
-
isShown
public boolean isShown()
Description copied from interface:BreadCrumbShould theBreadCrumbbe shown?- Returns:
- true if it should be displayed
-
getTitle
public String getTitle()
-
getId
public String getId()
-
getLabel
public String getLabel()
Description copied from interface:BreadCrumbReturns the visible label for the bread crumb- Returns:
- string, cannot be null
-
getUrl
public String getUrl()
Description copied from interface:BreadCrumbReturns the URL for the given label- Returns:
- URL of label. No context is added
-
isCurrentPage
public boolean isCurrentPage()
Description copied from interface:BreadCrumbReturns true if the currenBreadCrumbshould be selected- Returns:
- true or false
-
getChildCrumbs
public Collection<BreadCrumb> getChildCrumbs()
Description copied from interface:BreadCrumbReturns the children crumbs. This is not as sinister as it sounds! The bread crumb will iterate throught each chil crumb until one returns true forBreadCrumb.isShown()and then it'll follow down that crumb tree- Returns:
CollectionofBreadCrumbobjects.Collections.emptyList()if no child crumbs
-
isDisabled
public boolean isDisabled()
-
-