com.ecyrd.jspwiki.tags
Class TabbedSectionTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.ecyrd.jspwiki.tags.TabbedSectionTag
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag
public class TabbedSectionTag
- extends BodyTagSupport
Generates tabbed page section: container for the Tab tag.
Works together with the tabbedSection javacript.
Attributes
- defaultTab - Page name to refer to. Default is the current page.
- Since:
- v2.3.63
- Author:
- Dirk Frederickx
- See Also:
- Serialized Form
Method Summary |
int |
doAfterBody()
The tabbed section iterates 3 time through the underlying Tab tags
- first it identifies the default tab (displayed by default)
- second it generates the tabmenu markup (displays all tab-titles)
- finally it generates the content of each tab. |
int |
doEndTag()
|
int |
doStartTag()
|
boolean |
isStateFindDefaultTab()
Returns true, if the tab system is currently trying to
figure out which is the default tab. |
boolean |
isStateGenerateTabBody()
Returns true, if the tab system is currently generating
the tab body. |
boolean |
isStateGenerateTabMenu()
Returns true, if the tab system is currently generating
the tab menu. |
void |
release()
|
void |
setDefaultTab(String anDefaultTabId)
Set the id of the default tab (the tab which should be shown when
the page is first loaded). |
boolean |
validateDefaultTab(String aTabId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TabbedSectionTag
public TabbedSectionTag()
release
public void release()
-
- Specified by:
release
in interface Tag
- Overrides:
release
in class BodyTagSupport
setDefaultTab
public void setDefaultTab(String anDefaultTabId)
- Set the id of the default tab (the tab which should be shown when
the page is first loaded).
- Parameters:
anDefaultTabId
- ID attribute of the default tab.
validateDefaultTab
public boolean validateDefaultTab(String aTabId)
doStartTag
public int doStartTag()
throws JspTagException
-
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class BodyTagSupport
- Throws:
JspTagException
isStateFindDefaultTab
public boolean isStateFindDefaultTab()
- Returns true, if the tab system is currently trying to
figure out which is the default tab.
- Returns:
- True, if finding the default tab.
isStateGenerateTabMenu
public boolean isStateGenerateTabMenu()
- Returns true, if the tab system is currently generating
the tab menu.
- Returns:
- True, if currently generating the menu itself.
isStateGenerateTabBody
public boolean isStateGenerateTabBody()
- Returns true, if the tab system is currently generating
the tab body.
- Returns:
- True, if the tab system is currently generating the tab body.
doAfterBody
public int doAfterBody()
throws JspTagException
- The tabbed section iterates 3 time through the underlying Tab tags
- first it identifies the default tab (displayed by default)
- second it generates the tabmenu markup (displays all tab-titles)
- finally it generates the content of each tab.
- Specified by:
doAfterBody
in interface IterationTag
- Overrides:
doAfterBody
in class BodyTagSupport
- Returns:
-
- Throws:
{@inheritDoc}
JspTagException
doEndTag
public int doEndTag()
throws JspTagException
-
- Specified by:
doEndTag
in interface Tag
- Overrides:
doEndTag
in class BodyTagSupport
- Throws:
JspTagException