net.sourceforge.cruisecontrol.taglib
Class NavigationTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bynet.sourceforge.cruisecontrol.taglib.CruiseControlTagSupport
          extended bynet.sourceforge.cruisecontrol.taglib.CruiseControlBodyTagSupport
              extended bynet.sourceforge.cruisecontrol.taglib.NavigationTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class NavigationTag
extends CruiseControlBodyTagSupport

See Also:
Serialized Form

Field Summary
static java.lang.String BUILD_INFO_ATTR
           
static java.lang.String LINK_TEXT_ATTR
           
static java.lang.String LOG_FILE_ATTR
           
static java.lang.String URL_ATTR
           
 
Fields inherited from class net.sourceforge.cruisecontrol.taglib.CruiseControlTagSupport
LOG_PARAMETER
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
NavigationTag()
           
 
Method Summary
 int doAfterBody()
           
 void doInitBody()
           
 int doStartTag()
           
 int getFinalBuildNumber()
           
protected  java.lang.String getLinkText(BuildInfo info)
           
 int getStartingBuildNumber()
           
 void setDateFormat(java.lang.String dateFormatString)
          Set the DateFormat to use.
 void setFinalBuildNumber(int finalBuildNumber)
           
 void setStartingBuildNumber(int startingBuildNumber)
           
 
Methods inherited from class net.sourceforge.cruisecontrol.taglib.CruiseControlBodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class net.sourceforge.cruisecontrol.taglib.CruiseControlTagSupport
createUrl, createUrl, debug, debug, err, err, err, findLogDir, findLogFile, findProjects, getBaseLogDir, getContextParam, getLocale, getLog, getPageContext, getProject, getRequest, getServletPath, info, isSingleProject, setPageContext, setProject
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
doEndTag, getParent, setPageContext, setParent
 

Field Detail

LINK_TEXT_ATTR

public static final java.lang.String LINK_TEXT_ATTR
See Also:
Constant Field Values

URL_ATTR

public static final java.lang.String URL_ATTR
See Also:
Constant Field Values

LOG_FILE_ATTR

public static final java.lang.String LOG_FILE_ATTR
See Also:
Constant Field Values

BUILD_INFO_ATTR

public static final java.lang.String BUILD_INFO_ATTR
See Also:
Constant Field Values
Constructor Detail

NavigationTag

public NavigationTag()
Method Detail

getLinkText

protected java.lang.String getLinkText(BuildInfo info)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class CruiseControlBodyTagSupport
Throws:
javax.servlet.jsp.JspException

doInitBody

public void doInitBody()
                throws javax.servlet.jsp.JspException
Specified by:
doInitBody in interface javax.servlet.jsp.tagext.BodyTag
Overrides:
doInitBody in class CruiseControlBodyTagSupport
Throws:
javax.servlet.jsp.JspException
See Also:
BodyTag.doInitBody()

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.BodyTag
Overrides:
doAfterBody in class CruiseControlBodyTagSupport
Throws:
javax.servlet.jsp.JspException

getStartingBuildNumber

public int getStartingBuildNumber()

setStartingBuildNumber

public void setStartingBuildNumber(int startingBuildNumber)

getFinalBuildNumber

public int getFinalBuildNumber()

setFinalBuildNumber

public void setFinalBuildNumber(int finalBuildNumber)

setDateFormat

public void setDateFormat(java.lang.String dateFormatString)
Set the DateFormat to use. The default is based on the client's locale with a 24 hour time. For a client with a US locale that would be MM/dd/yyyy HH:mm:ss.

Parameters:
dateFormatString - The date format to use. Any format appropriate for the SimpleDateFormat is okay to use.
See Also:
SimpleDateFormat