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 ofBreadCrumb
s
-
-
Field Summary
Fields Modifier and Type Field Description protected com.opensymphony.xwork2.Action
action
protected static String
BROWSE_PREFIX
protected static String
NUMBER_PREFIX
protected javax.servlet.http.HttpServletRequest
request
-
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 String
createUrl(String actionName, String nameSpace, String key1, String value1)
protected String
createUrl(String actionName, String nameSpace, String key1, String value1, String key2, String value2)
String
getAccessKey()
Returns a key as an access keyString
getLabelWithAccessKeyUnderlined()
protected String
getText(String key)
protected boolean
isAnyChildShown()
protected boolean
isInCurrentPath(String path)
void
setAction(com.opensymphony.xwork2.Action action)
void
setRequest(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:BreadCrumb
Returns a key as an access key- Specified by:
getAccessKey
in interfaceBreadCrumb
- Returns:
- null if doesn't exist
-
getLabelWithAccessKeyUnderlined
public String getLabelWithAccessKeyUnderlined()
-
-