com.atlassian.breadcrumbs.chain
Class ChainResultSummaryCrumb

java.lang.Object
  extended by com.atlassian.breadcrumbs.BaseCrumb
      extended by com.atlassian.breadcrumbs.chain.ChainResultSummaryCrumb
All Implemented Interfaces:
BreadCrumb

public class ChainResultSummaryCrumb
extends BaseCrumb

Crumb for a single BuildResultsImpl object.


Field Summary
 
Fields inherited from class com.atlassian.breadcrumbs.BaseCrumb
action, BROWSE_PREFIX, NUMBER_PREFIX, request
 
Constructor Summary
ChainResultSummaryCrumb(javax.servlet.http.HttpServletRequest request, com.opensymphony.xwork.Action action)
           
 
Method Summary
 java.util.Collection<BreadCrumb> getChildCrumbs()
          Returns the children crumbs.
 java.util.Collection<BreadCrumb> getCrumbs()
           
 java.lang.String getId()
           
 java.lang.String getLabel()
          Returns the visible label for the bread crumb
 java.lang.String getTitle()
           
 java.lang.String getUrl()
          Returns the URL for the given label
 boolean isCurrentPage()
          Returns true if the curren BreadCrumb should be selected
 boolean isShown()
          Should the BreadCrumb be shown?
 
Methods inherited from class com.atlassian.breadcrumbs.BaseCrumb
createUrl, createUrl, getAccessKey, getLabelWithAccessKeyUnderlined, getText, isAnyChildShown, isInCurrentPath, setAction, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainResultSummaryCrumb

public ChainResultSummaryCrumb(javax.servlet.http.HttpServletRequest request,
                               com.opensymphony.xwork.Action action)
Method Detail

getCrumbs

public java.util.Collection<BreadCrumb> getCrumbs()

isShown

public boolean isShown()
Description copied from interface: BreadCrumb
Should the BreadCrumb be shown?

Returns:
true if it should be displayed

getId

public java.lang.String getId()

getLabel

public java.lang.String getLabel()
Description copied from interface: BreadCrumb
Returns the visible label for the bread crumb

Returns:
string, cannot be null

getUrl

public java.lang.String getUrl()
Description copied from interface: BreadCrumb
Returns the URL for the given label

Returns:
URL of label. No context is added

isCurrentPage

public boolean isCurrentPage()
Description copied from interface: BreadCrumb
Returns true if the curren BreadCrumb should be selected

Returns:
true or false

getTitle

public java.lang.String getTitle()

getChildCrumbs

public java.util.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 © 2012 Atlassian. All Rights Reserved.