Package org.apache.wiki.tags
Class LinkTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.wiki.tags.WikiTagBase
-
- org.apache.wiki.tags.WikiLinkTag
-
- org.apache.wiki.tags.LinkTag
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.TryCatchFinally,ParamHandler
public class LinkTag extends WikiLinkTag implements ParamHandler, javax.servlet.jsp.tagext.BodyTag
Provides a generic link tag for all kinds of linking purposes.If parameter jsp is defined, constructs a URL pointing to the specified JSP page, under the baseURL known by the Engine. Any ParamTag name-value pairs contained in the body are added to this URL to provide support for arbitrary JSP calls.
- Since:
- 2.3.50
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.wiki.tags.WikiLinkTag
ANCHOR, m_format, m_pageName, m_template, URL
-
Fields inherited from class org.apache.wiki.tags.WikiTagBase
m_wikiContext
-
-
Constructor Summary
Constructors Constructor Description LinkTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoEndTag()voiddoInitBody()intdoWikiStartTag()This method is allowed to do pretty much whatever he wants.java.lang.StringgetVersion()voidinitTag()This method is called when the tag is encountered within a new request, but before the setXXX() methods are called.voidsetAccessKey(java.lang.String key)voidsetBodyContent(javax.servlet.jsp.tagext.BodyContent bc)voidsetCompareToVersion(java.lang.String ver)voidsetContainedParameter(java.lang.String name, java.lang.String value)Support for ParamTag supplied parameters in body.voidsetContext(java.lang.String context)voidsetCssClass(java.lang.String arg)voidsetJsp(java.lang.String jsp)voidsetRef(java.lang.String ref)voidsetRel(java.lang.String rel)voidsetStyle(java.lang.String style)voidsetTabindex(java.lang.String tabindex)voidsetTarget(java.lang.String target)voidsetTemplatefile(java.lang.String key)voidsetTitle(java.lang.String title)voidsetVersion(java.lang.String arg)-
Methods inherited from class org.apache.wiki.tags.WikiLinkTag
getPage, getTemplate, setFormat, setPage, setTemplate
-
Methods inherited from class org.apache.wiki.tags.WikiTagBase
doCatch, doFinally, doStartTag, setId, setPageContext
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setParent, setValue
-
-
-
-
Constructor Detail
-
LinkTag
public LinkTag()
-
-
Method Detail
-
initTag
public void initTag()
Description copied from class:WikiTagBaseThis method is called when the tag is encountered within a new request, but before the setXXX() methods are called. The default implementation does nothing.- Overrides:
initTagin classWikiLinkTag
-
setTemplatefile
public void setTemplatefile(java.lang.String key)
-
setAccessKey
public void setAccessKey(java.lang.String key)
-
getVersion
public java.lang.String getVersion()
-
setVersion
public void setVersion(java.lang.String arg)
-
setCssClass
public void setCssClass(java.lang.String arg)
-
setStyle
public void setStyle(java.lang.String style)
-
setTitle
public void setTitle(java.lang.String title)
-
setTarget
public void setTarget(java.lang.String target)
-
setTabindex
public void setTabindex(java.lang.String tabindex)
-
setCompareToVersion
public void setCompareToVersion(java.lang.String ver)
-
setRel
public void setRel(java.lang.String rel)
-
setRef
public void setRef(java.lang.String ref)
-
setJsp
public void setJsp(java.lang.String jsp)
-
setContext
public void setContext(java.lang.String context)
-
setContainedParameter
public void setContainedParameter(java.lang.String name, java.lang.String value)
Support for ParamTag supplied parameters in body.- Specified by:
setContainedParameterin interfaceParamHandler
-
doWikiStartTag
public int doWikiStartTag() throws java.lang.Exception
Description copied from class:WikiTagBaseThis method is allowed to do pretty much whatever he wants. We then catch all mistakes.- Specified by:
doWikiStartTagin classWikiTagBase- Throws:
java.lang.Exception
-
doEndTag
public int doEndTag()
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classWikiLinkTag
-
setBodyContent
public void setBodyContent(javax.servlet.jsp.tagext.BodyContent bc)
- Specified by:
setBodyContentin interfacejavax.servlet.jsp.tagext.BodyTag
-
doInitBody
public void doInitBody()
- Specified by:
doInitBodyin interfacejavax.servlet.jsp.tagext.BodyTag
-
-