com.jivesoftware.base.admin
Class TabsTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport
com.opensymphony.webwork.views.jsp.ComponentTagSupport
com.jivesoftware.base.admin.TabsTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class TabsTag
- extends com.opensymphony.webwork.views.jsp.ComponentTagSupport
A simple JSP tag for displaying tab information in the admin console. The
SidebarTag
is similiar to this one.
Attributes:
- bean (required) - the id of the request attribute which is a
AdminPageBean
instance. This class holds information
needed to properly render the admin console tabs.
- css (optional) - the CSS class name used to decorate the LI of the tab.
- currentcss (optional) - the CSS class name used to decorate the LI of the
currently selected tab.
This class assumes there is a request attribute with the name specified by the bean attribute.
This tag prints out minimal HTML. It basically prints an unordered list (UL element) with each
LI containing an "A" tag specfied by the body content of this tag. For example, the body should contain
a template A tag which will have its values replaced at runtime:
<jive:tabs bean="jivepageinfo">
<a href="[url]" title="[description]">[name]</a>
</jive:tabs>
Available token are:
- [id] - the ID of the tab, usually not needed.
- [name] - the name of the tab, should be thought of as the display name.
- [url] - the URL of the tab.
- [description] - the description of the tab, good for mouse rollovers.
- See Also:
- Serialized Form
Fields inherited from class com.opensymphony.webwork.views.jsp.ComponentTagSupport |
component |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
com.opensymphony.webwork.components.Component |
getBean(com.opensymphony.xwork.util.OgnlValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
java.lang.String |
getProduct()
|
void |
setBean(java.lang.String bean)
Sets the name of the request attribute to hold a AdminPageBean instance. |
void |
setCss(java.lang.String css)
Sets the CSS used for tab decoration. |
void |
setCurrentcss(java.lang.String currentcss)
Sets the CSS class value for the currently selected tab. |
void |
setFilename(java.lang.String filename)
|
void |
setMinEdition(java.lang.String minEdition)
|
void |
setProduct(java.lang.String product)
|
void |
setRole(java.lang.String role)
|
Methods inherited from class com.opensymphony.webwork.views.jsp.ComponentTagSupport |
doEndTag, doStartTag, getComponent, populateParams |
Methods inherited from class com.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport |
altSyntax, findString, findValue, findValue, getBody, getStack, setId, toString, translateVariables |
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, setPageContext, 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 |
TabsTag
public TabsTag()
setFilename
public void setFilename(java.lang.String filename)
setRole
public void setRole(java.lang.String role)
setMinEdition
public void setMinEdition(java.lang.String minEdition)
setBean
public void setBean(java.lang.String bean)
- Sets the name of the request attribute to hold a
AdminPageBean
instance.
setCss
public void setCss(java.lang.String css)
- Sets the CSS used for tab decoration.
setCurrentcss
public void setCurrentcss(java.lang.String currentcss)
- Sets the CSS class value for the currently selected tab.
getProduct
public java.lang.String getProduct()
setProduct
public void setProduct(java.lang.String product)
getBean
public com.opensymphony.webwork.components.Component getBean(com.opensymphony.xwork.util.OgnlValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
- Specified by:
getBean
in class com.opensymphony.webwork.views.jsp.ComponentTagSupport
Copyright © 1999-2006 Jive Software.