Package org.apache.wiki.tags
Class TabTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.wiki.tags.WikiTagBase
org.apache.wiki.tags.TabTag
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.TryCatchFinally
public class TabTag extends WikiTagBase
Generates single tabbed page layout.
Works together with the tabbedSection javascript. Note that if you do not
specify an url, the body contents of the tag are loaded by the tag itself.
Attributes
- id - ID for this tab. (mandatory)
- title - Title of this tab. (mandatory)
- accesskey - Single char usable as quick accesskey (alt- or ctrl-) (optional)
- url - If you don't want to create a Javascript-enabled tag, you can use this to make the tab look just the usual tag, but instead, it will actually link to that page. This can be useful in certain cases where you have something that you want to look like a part of a tag, but for example, due to it being very big in size, don't want to include it as a part of the page content every time.
- Since:
- v2.3.63
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.apache.wiki.tags.WikiTagBase
m_wikiContextFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors Constructor Description TabTag() -
Method Summary
Modifier and Type Method Description intdoEndTag()voiddoFinally()intdoWikiStartTag()This method is allowed to do pretty much whatever he wants.voidsetAccesskey(java.lang.String anAccesskey)Sets the tab access key.voidsetTitle(java.lang.String aTabTitle)Sets the tab title.voidsetUrl(java.lang.String url)Sets the tab URL.Methods inherited from class org.apache.wiki.tags.WikiTagBase
doCatch, doStartTag, initTag, setId, setPageContextMethods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TabTag
public TabTag()
-
-
Method Details
-
doFinally
- Specified by:
doFinallyin interfacejavax.servlet.jsp.tagext.TryCatchFinally- Overrides:
doFinallyin classWikiTagBase
-
setTitle
Sets the tab title.- Parameters:
aTabTitle- the tab title
-
setAccesskey
Sets the tab access key.- Parameters:
anAccesskey- the access key
-
setUrl
Sets the tab URL.- Parameters:
url- the URL
-
doWikiStartTag
This method is allowed to do pretty much whatever he wants. We then catch all mistakes.- Specified by:
doWikiStartTagin classWikiTagBase- Throws:
javax.servlet.jsp.JspTagException
-
doEndTag
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classWikiTagBase- Throws:
javax.servlet.jsp.JspTagException
-