Package com.atlassian.breadcrumbs
Class BaseCrumb
- java.lang.Object
-
- com.atlassian.breadcrumbs.BaseCrumb
-
- All Implemented Interfaces:
BreadCrumb
- Direct Known Subclasses:
BuildCrumb,BuildResultSummaryCrumb,ChainBranchesCrumb,ChainConfigCrumb,ChainCrumb,ChainResultSummaryCrumb,JobConfigCrumb,JobResultCrumb,ProjectCrumb
public abstract class BaseCrumb extends Object implements BreadCrumb
Base class for implementors ofBreadCrumbs
-
-
Field Summary
Fields Modifier and Type Field Description protected com.opensymphony.xwork2.Actionactionprotected static StringBROWSE_PREFIXprotected static StringNUMBER_PREFIXprotected javax.servlet.http.HttpServletRequestrequest
-
Constructor Summary
Constructors Constructor Description BaseCrumb(javax.servlet.http.HttpServletRequest request, com.opensymphony.xwork2.Action action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateUrl(String actionName, String nameSpace, String key1, String value1)protected StringcreateUrl(String actionName, String nameSpace, String key1, String value1, String key2, String value2)StringgetAccessKey()Returns a key as an access keyStringgetLabelWithAccessKeyUnderlined()protected StringgetText(String key)protected booleanisAnyChildShown()protected booleanisInCurrentPath(String path)voidsetAction(com.opensymphony.xwork2.Action action)voidsetRequest(javax.servlet.http.HttpServletRequest request)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.breadcrumbs.BreadCrumb
getChildCrumbs, getLabel, getUrl, isCurrentPage, isShown
-
-
-
-
Field Detail
-
request
protected javax.servlet.http.HttpServletRequest request
-
action
protected com.opensymphony.xwork2.Action action
-
BROWSE_PREFIX
protected static final String BROWSE_PREFIX
- See Also:
- Constant Field Values
-
NUMBER_PREFIX
protected static final String NUMBER_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isInCurrentPath
protected boolean isInCurrentPath(String path)
-
createUrl
protected String createUrl(String actionName, String nameSpace, String key1, String value1)
-
createUrl
protected String createUrl(String actionName, String nameSpace, String key1, String value1, String key2, String value2)
-
isAnyChildShown
protected boolean isAnyChildShown()
-
setRequest
public void setRequest(javax.servlet.http.HttpServletRequest request)
-
setAction
public void setAction(com.opensymphony.xwork2.Action action)
-
getAccessKey
public String getAccessKey()
Description copied from interface:BreadCrumbReturns a key as an access key- Specified by:
getAccessKeyin interfaceBreadCrumb- Returns:
- null if doesn't exist
-
getLabelWithAccessKeyUnderlined
public String getLabelWithAccessKeyUnderlined()
-
-