com.atlassian.breadcrumbs
Class BaseCrumb

java.lang.Object
  extended by com.atlassian.breadcrumbs.BaseCrumb
All Implemented Interfaces:
BreadCrumb
Direct Known Subclasses:
AbstractBuildCrumb, BuildCrumb, BuildResultSummaryCrumb, ChainConfigCrumb, ChainCrumb, ChainResultSummaryCrumb, JobConfigCrumb, JobResultCrumb, ProjectCrumb

public abstract class BaseCrumb
extends java.lang.Object
implements BreadCrumb

Base class for implementors of BreadCrumbs


Field Summary
protected  com.opensymphony.xwork.Action action
           
protected static java.lang.String BROWSE_PREFIX
           
protected static java.lang.String NUMBER_PREFIX
           
protected  javax.servlet.http.HttpServletRequest request
           
 
Constructor Summary
BaseCrumb(javax.servlet.http.HttpServletRequest request, com.opensymphony.xwork.Action action)
           
 
Method Summary
protected  java.lang.String createUrl(java.lang.String actionName, java.lang.String nameSpace, java.lang.String key1, java.lang.String value1)
           
protected  java.lang.String createUrl(java.lang.String actionName, java.lang.String nameSpace, java.lang.String key1, java.lang.String value1, java.lang.String key2, java.lang.String value2)
           
 java.lang.String getAccessKey()
          Returns a key as an access key
 java.lang.String getLabelWithAccessKeyUnderlined()
           
protected  java.lang.String getText(java.lang.String key)
           
protected  boolean isAnyChildShown()
           
protected  boolean isInCurrentPath(java.lang.String path)
           
 void setAction(com.opensymphony.xwork.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.xwork.Action action

BROWSE_PREFIX

protected static final java.lang.String BROWSE_PREFIX
See Also:
Constant Field Values

NUMBER_PREFIX

protected static final java.lang.String NUMBER_PREFIX
See Also:
Constant Field Values
Constructor Detail

BaseCrumb

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

isInCurrentPath

protected boolean isInCurrentPath(java.lang.String path)

getText

protected java.lang.String getText(java.lang.String key)

createUrl

protected java.lang.String createUrl(java.lang.String actionName,
                                     java.lang.String nameSpace,
                                     java.lang.String key1,
                                     java.lang.String value1)

createUrl

protected java.lang.String createUrl(java.lang.String actionName,
                                     java.lang.String nameSpace,
                                     java.lang.String key1,
                                     java.lang.String value1,
                                     java.lang.String key2,
                                     java.lang.String value2)

isAnyChildShown

protected boolean isAnyChildShown()

setRequest

public void setRequest(javax.servlet.http.HttpServletRequest request)

setAction

public void setAction(com.opensymphony.xwork.Action action)

getAccessKey

public java.lang.String getAccessKey()
Description copied from interface: BreadCrumb
Returns a key as an access key

Specified by:
getAccessKey in interface BreadCrumb
Returns:
null if doesn't exist

getLabelWithAccessKeyUnderlined

public java.lang.String getLabelWithAccessKeyUnderlined()


Copyright © 2011 Atlassian. All Rights Reserved.