Package com.composum.sling.cpnl
Class AnchorTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- com.composum.sling.cpnl.CpnlBodyTagSupport
-
- com.composum.sling.cpnl.TagBase
-
- com.composum.sling.cpnl.AnchorTag
-
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.DynamicAttributes,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
public class AnchorTag extends TagBase
a tag to build a page anchor link- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringname-
Fields inherited from class com.composum.sling.cpnl.TagBase
classes, dynamicAttributes, TAG_NONE, tagName, test
-
Fields inherited from class com.composum.sling.cpnl.CpnlBodyTagSupport
context, out, request, resource, resourceResolver
-
-
Constructor Summary
Constructors Constructor Description AnchorTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclear()Reset all member variables to the (default) start values.protected StringgetDefaultTagName()protected StringgetName()protected booleangetTestResult()evaluates the test expression if present and returns the evaluation result; default: 'true'voidsetName(String anchor)protected voidwriteAttributes(javax.servlet.jsp.JspWriter writer)-
Methods inherited from class com.composum.sling.cpnl.TagBase
acceptDynamicAttribute, doEndTag, doStartTag, getClasses, getTagName, renderTag, renderTagEnd, renderTagStart, setClasses, setDynamicAttribute, setTagName, setTest
-
Methods inherited from class com.composum.sling.cpnl.CpnlBodyTagSupport
createContext, eval, getExpressionUtil, release, setPageContext
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
-
-
-
Field Detail
-
name
protected String name
-
-
Method Detail
-
clear
protected void clear()
Description copied from class:CpnlBodyTagSupportReset all member variables to the (default) start values. Called prior processing the tag and at release time.
-
getDefaultTagName
protected String getDefaultTagName()
- Specified by:
getDefaultTagNamein classTagBase
-
setName
public void setName(String anchor)
- Parameters:
anchor- the identifier of the anchor link tag to set
-
getName
protected String getName()
-
writeAttributes
protected void writeAttributes(javax.servlet.jsp.JspWriter writer) throws IOException- Overrides:
writeAttributesin classTagBase- Throws:
IOException
-
getTestResult
protected boolean getTestResult()
Description copied from class:TagBaseevaluates the test expression if present and returns the evaluation result; default: 'true'- Overrides:
getTestResultin classTagBase- Returns:
- the 'test' result combined with the name not blank check
-
-