Openfire 3.9.3 Javadoc

org.jivesoftware.admin
Class TabsTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.jivesoftware.admin.TabsTag
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 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:

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:

See Also:
Serialized Form

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
TabsTag()
           
 
Method Summary
 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.
 
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

TabsTag

public TabsTag()
Method Detail

getBean

public String getBean()
The name of the request attribute which holds a AdminPageBean instance.


setBean

public void setBean(String bean)
Sets the name of the request attribute to hold a AdminPageBean instance.


getCss

public String getCss()
Returns the value of the CSS class to be used for tab decoration. If not set will return a blank string.


setCss

public void setCss(String css)
Sets the CSS used for tab decoration.


getCurrentcss

public String getCurrentcss()
Returns the value of the CSS class to be used for the currently selected LI (tab). If not set will return a blank string.


setCurrentcss

public void setCurrentcss(String currentcss)
Sets the CSS class value for the currently selected tab.


getJustlinks

public Boolean getJustlinks()
Returns whether we are in just links mode.


setJustlinks

public void setJustlinks(Boolean justlinks)
Sets whether we are just to display links, no list.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Does nothing, returns BodyTag.EVAL_BODY_BUFFERED always.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Gets the 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).

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
Tag.EVAL_PAGE after rendering the tabs.
Throws:
javax.servlet.jsp.JspException - if an exception occurs while rendering the tabs.

Openfire 3.9.3 Javadoc

Copyright © 2003-2008 Jive Software.