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_wikiContext
-
-
Constructor Summary
Constructors Constructor Description TabTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
void
doFinally()
int
doWikiStartTag()
This method is allowed to do pretty much whatever he wants.void
setAccesskey(java.lang.String anAccesskey)
Sets the tab access key.void
setTitle(java.lang.String aTabTitle)
Sets the tab title.void
setUrl(java.lang.String url)
Sets the tab URL.-
Methods inherited from class org.apache.wiki.tags.WikiTagBase
doCatch, doStartTag, initTag, setId, setPageContext
-
-
-
-
Constructor Detail
-
TabTag
public TabTag()
-
-
Method Detail
-
doFinally
public void doFinally()
- Specified by:
doFinally
in interfacejavax.servlet.jsp.tagext.TryCatchFinally
- Overrides:
doFinally
in classWikiTagBase
-
setTitle
public void setTitle(java.lang.String aTabTitle)
Sets the tab title.- Parameters:
aTabTitle
- the tab title
-
setAccesskey
public void setAccesskey(java.lang.String anAccesskey)
Sets the tab access key.- Parameters:
anAccesskey
- the access key
-
setUrl
public void setUrl(java.lang.String url)
Sets the tab URL.- Parameters:
url
- the URL
-
doWikiStartTag
public int doWikiStartTag() throws javax.servlet.jsp.JspTagException
This method is allowed to do pretty much whatever he wants. We then catch all mistakes.- Specified by:
doWikiStartTag
in classWikiTagBase
- Throws:
javax.servlet.jsp.JspTagException
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspTagException
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classWikiTagBase
- Throws:
javax.servlet.jsp.JspTagException
-
-