net.sourceforge.cruisecontrol.taglib
Class TabSheetTag

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.TabSheetTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class TabSheetTag
extends CruiseControlBodyTagSupport

A sheet of navigation tabs.

Author:
Robert Watkins, Hack Kampbjorn
See Also:
Serialized Form

Field Summary
 
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
TabSheetTag()
           
 
Method Summary
 void addTab(Tab tab)
          Add a Tab to the list of tabs.
 int doEndTag()
          Having finished the tag, we iterate over the tabs, printing them out correctly.
 int doStartTag()
          On starting the tag, we clear out the per-instance state (should be clear already, but hey).
 boolean hasTabs()
           
 void release()
          Clear up state when told to.
 
Methods inherited from class net.sourceforge.cruisecontrol.taglib.CruiseControlBodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, 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
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
getParent, setPageContext, setParent
 

Constructor Detail

TabSheetTag

public TabSheetTag()
Method Detail

doStartTag

public int doStartTag()
On starting the tag, we clear out the per-instance state (should be clear already, but hey).

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class CruiseControlBodyTagSupport
Returns:
EVAL_BODY_TAG, indicating that we should look in the body.

addTab

public void addTab(Tab tab)
Add a Tab to the list of tabs.

Parameters:
tab - the tab to add.

release

public void release()
Clear up state when told to.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class CruiseControlBodyTagSupport

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Having finished the tag, we iterate over the tabs, printing them out correctly.

Returns:
EVAL_PAGE
Throws:
javax.servlet.jsp.JspTagException - if there's an error, like an IO error.

hasTabs

public boolean hasTabs()