Package org.apache.wiki.tags
Class TabbedSectionTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.tagext.BodyTagSupport
org.apache.wiki.tags.TabbedSectionTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.BodyTag,jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
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
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFEREDFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe 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.intdoEndTag()intbooleanReturns true, if the tab system is currently trying to figure out which is the default tab.booleanReturns true, if the tab system is currently generating the tab body.booleanReturns true, if the tab system is currently generating the tab menu.voidrelease()voidsetDefaultTab(String anDefaultTabId) Set the id of the default tab (the tab which should be shown when the page is first loaded).booleanvalidateDefaultTab(String aTabId) Methods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContentMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Constructor Details
-
TabbedSectionTag
public TabbedSectionTag()
-
-
Method Details
-
release
- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.servlet.jsp.tagext.BodyTagSupport
-
setDefaultTab
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
-
doStartTag
- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.BodyTagSupport- Throws:
jakarta.servlet.jsp.JspTagException
-
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
Returns true, if the tab system is currently generating the tab menu.- Returns:
- True, if currently generating the menu itself.
-
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
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:
doAfterBodyin interfacejakarta.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBodyin classjakarta.servlet.jsp.tagext.BodyTagSupport- Returns:
- Throws:
jakarta.servlet.jsp.JspTagException
-
doEndTag
- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.BodyTagSupport- Throws:
jakarta.servlet.jsp.JspTagException
-