|
Openfire 3.7.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport org.jivesoftware.admin.SubnavTag
public class SubnavTag
A simple JSP tag for displaying sub-navigation bar information in the admin console. The
TabsTag
is similiar to this one.
Attributes:
AdminPageBean
instance. This class holds information
needed to properly render the admin console sidebar.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:
SubSidebarTag
class.
Available tokens for the "A" tag are:
Field Summary |
---|
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 |
Constructor Summary | |
---|---|
SubnavTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Gets the AdminPageBean instance from the request. |
int |
doStartTag()
Does nothing, returns BodyTag.EVAL_BODY_BUFFERED always. |
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). |
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. |
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 |
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 |
---|
public SubnavTag()
Method Detail |
---|
public String getCss()
public void setCss(String css)
public String getCurrentcss()
public void setCurrentcss(String currentcss)
public int doStartTag() throws javax.servlet.jsp.JspException
BodyTag.EVAL_BODY_BUFFERED
always.
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public 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 sidebar items. The body content
of the tag is assumed to have an A tag in it with tokens to replace (see class description) as well
as having a subsidebar tag..
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
Tag.EVAL_PAGE
after rendering the tabs.
javax.servlet.jsp.JspException
- if an exception occurs while rendering the sidebar items.
|
Openfire 3.7.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |