public class TabsTag
extends javax.servlet.jsp.tagext.BodyTagSupport
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"> <br>
<a href="[url]" title="[description]">[name]</a> <br>
</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.| Constructor and Description |
|---|
TabsTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Gets the
AdminPageBean instance from the request. |
int |
doStartTag()
Does nothing, returns
BodyTag.EVAL_BODY_BUFFERED always. |
String |
getBean()
The name of the request attribute which holds a
AdminPageBean instance. |
String |
getCss()
Returns the value of the CSS class to be used for tab decoration.
|
String |
getCurrentcss()
Returns the value of the CSS class to be used for the currently selected LI (tab).
|
Boolean |
getJustlinks()
Returns whether we are in just links mode.
|
void |
setBean(String bean)
Sets the name of the request attribute to hold a
AdminPageBean instance. |
void |
setCss(String css)
Sets the CSS used for tab decoration.
|
void |
setCurrentcss(String currentcss)
Sets the CSS class value for the currently selected tab.
|
void |
setJustlinks(Boolean justlinks)
Sets whether we are just to display links, no list.
|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic String getBean()
AdminPageBean instance.public void setBean(String bean)
AdminPageBean instance.bean - the name of the beanpublic String getCss()
public void setCss(String css)
css - the CSSpublic String getCurrentcss()
public void setCurrentcss(String currentcss)
currentcss - the CSS classpublic Boolean getJustlinks()
true if just displaying links, otherwise falsepublic void setJustlinks(Boolean justlinks)
justlinks - true to just display links, otherwise falsepublic int doStartTag()
throws javax.servlet.jsp.JspException
BodyTag.EVAL_BODY_BUFFERED always.doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
AdminPageBean instance from the request. If it doesn't exist then execution is stopped
and nothing is printed. If it exists, retrieve values from it and render the tabs. The body content
of the tag is assumed to have an A tag in it with tokens to replace (see class description).doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportTag.EVAL_PAGE after rendering the tabs.javax.servlet.jsp.JspException - if an exception occurs while rendering the tabs.Copyright © 2003–2020 Ignite Realtime. All rights reserved.