Package org.jivesoftware.admin
Class SubSidebarTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.jivesoftware.admin.SidebarTag
-
- org.jivesoftware.admin.SubSidebarTag
-
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
public class SubSidebarTag extends SidebarTag
A simple tag to gather its body content and pass it to the parent tag. This tag must be used as a child of the
SidebarTag.Sample usage:
<jive:sidebar bean="jivepageinfo"> <br> <a href="[url]" title="[description]">[name]</a> <br> <jive:subsidebar> <br> <a href="[url]">[name]</a> <br> </jive:subsidebar> <br> </jive:sidebar>Note, this class has no attributes.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SubSidebarTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoEndTag()Sets the 'body' property to be equal to the body content of this tag.intdoStartTag()Looks for the parent SidebarTag class, throws an error if not found.StringgetBody()Returns the body content of this tag.voidsetBody(String body)Sets the body content of this tag.-
Methods inherited from class org.jivesoftware.admin.SidebarTag
getCss, getCurrentcss, getHeadercss, getSubsidebarTag, setCss, setCurrentcss, setHeadercss, setSubSidebar
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Method Detail
-
getBody
public String getBody()
Returns the body content of this tag.- Returns:
- the body of the tag
-
setBody
public void setBody(String body)
Sets the body content of this tag.- Parameters:
body- the body of this tag
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspExceptionLooks for the parent SidebarTag class, throws an error if not found. If found,BodyTag.EVAL_BODY_BUFFEREDis returned.- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classSidebarTag- Returns:
BodyTag.EVAL_BODY_BUFFEREDif no errors.- Throws:
javax.servlet.jsp.JspException- if a parent SidebarTag is not found.
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspExceptionSets the 'body' property to be equal to the body content of this tag. Calls theSidebarTag.setSubSidebar(SubSidebarTag)method of the parent tag.- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classSidebarTag- Returns:
Tag.EVAL_PAGE- Throws:
javax.servlet.jsp.JspException- if an error occurs.
-
-