net.sourceforge.jsptabcontrol.taglib
Class TabControlTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by net.sourceforge.jsptabcontrol.taglib.TabControlTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
TabControlTag

public class TabControlTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Description : Tag for tab control. Chil of this tag contains tab page tag. To use it you must include jsptabcontrol.js in your JSP.

Version:
1.0.0
Author:
Angelo ZERR
See Also:
Serialized Form

Field Summary
protected  java.lang.Object resources
           
 
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
TabControlTag()
           
 
Method Summary
 void addTab(java.lang.String tabPageName, java.lang.String tabPageTitle, java.lang.String tabPageTitleKey, java.lang.String tabPageWidth, java.lang.String tabPageHref, java.lang.String tabPageHeaderClass, boolean tabPageSelected)
          Called by the tags to add a tab.
 int doAfterBody()
          End of the body.
 int doEndTag()
          End the tag.
 int doStartTag()
           
 java.lang.String getBundleKey()
           
 java.lang.String getHeight()
           
 java.lang.String getLocaleKey()
           
 java.lang.String getMessage(java.lang.String key)
          Get the title key from the bundle (if it exists).
 java.lang.String getName()
           
 java.lang.String getTabControlBodyClass()
           
 java.lang.String getTabControlHeaderClass()
           
 java.lang.String getWidth()
           
 boolean isTabAlreadySelected()
           
 void setBundleKey(java.lang.String bundleKey)
           
 void setHeight(java.lang.String height)
           
 void setLocaleKey(java.lang.String localeKey)
           
 void setName(java.lang.String name)
           
 void setTabControlBodyClass(java.lang.String tabControlBodyClass)
           
 void setTabControlHeaderClass(java.lang.String tabControlHeaderClass)
           
 void setWidth(java.lang.String width)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
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
 

Field Detail

resources

protected java.lang.Object resources
Constructor Detail

TabControlTag

public TabControlTag()
Method Detail

addTab

public void addTab(java.lang.String tabPageName,
                   java.lang.String tabPageTitle,
                   java.lang.String tabPageTitleKey,
                   java.lang.String tabPageWidth,
                   java.lang.String tabPageHref,
                   java.lang.String tabPageHeaderClass,
                   boolean tabPageSelected)
            throws javax.servlet.jsp.JspException
Called by the tags to add a tab.

Parameters:
in_tabKey - the key of the tab title.
Throws:
javax.servlet.jsp.JspException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
End of the body. Print everything.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
End the tag. Reset the tag.

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

isTabAlreadySelected

public boolean isTabAlreadySelected()

getMessage

public java.lang.String getMessage(java.lang.String key)
Get the title key from the bundle (if it exists).

Parameters:
key - the key

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getWidth

public java.lang.String getWidth()

setWidth

public void setWidth(java.lang.String width)

getHeight

public java.lang.String getHeight()

setHeight

public void setHeight(java.lang.String height)

getTabControlHeaderClass

public java.lang.String getTabControlHeaderClass()

setTabControlHeaderClass

public void setTabControlHeaderClass(java.lang.String tabControlHeaderClass)

getTabControlBodyClass

public java.lang.String getTabControlBodyClass()

setTabControlBodyClass

public void setTabControlBodyClass(java.lang.String tabControlBodyClass)

getBundleKey

public java.lang.String getBundleKey()

setBundleKey

public void setBundleKey(java.lang.String bundleKey)

getLocaleKey

public java.lang.String getLocaleKey()

setLocaleKey

public void setLocaleKey(java.lang.String localeKey)


Copyright 2007 null. All Rights Reserved.