org.dlese.dpc.dds.tags
Class KeywordsHighlightTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.dlese.dpc.dds.tags.KeywordsHighlightTag
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag
public class KeywordsHighlightTag
- extends BodyTagSupport
Provide keyword highlighting of the body content of this tag.
- Author:
- Ryan Deardorff
- See Also:
- Serialized Form
|
Method Summary |
int |
doEndTag()
Highlight keywords in the text of the tag's body |
int |
doStartTag()
Return EVAL_BODY_BUFFERED for evaluation of body text |
void |
setAddWbr(String bool)
Sets the addWbr attribute of the KeywordsHighlightTag object |
void |
setMaxStringLength(String max)
Sets the maxStringLength attribute of the KeywordsHighlightTag object |
void |
setMinStringLength(String min)
Sets the minStringLength attribute of the KeywordsHighlightTag object |
void |
setTruncateString(String truncate)
Sets the truncateString attribute of the KeywordsHighlightTag object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeywordsHighlightTag
public KeywordsHighlightTag()
setTruncateString
public void setTruncateString(String truncate)
- Sets the truncateString attribute of the KeywordsHighlightTag object
- Parameters:
truncate - The new truncateString value
setMaxStringLength
public void setMaxStringLength(String max)
- Sets the maxStringLength attribute of the KeywordsHighlightTag object
- Parameters:
max - The new maxStringLength value
setMinStringLength
public void setMinStringLength(String min)
- Sets the minStringLength attribute of the KeywordsHighlightTag object
- Parameters:
min - The new minStringLength value
setAddWbr
public void setAddWbr(String bool)
- Sets the addWbr attribute of the KeywordsHighlightTag object
- Parameters:
bool - The new addWbr value
doStartTag
public int doStartTag()
throws JspException
- Return EVAL_BODY_BUFFERED for evaluation of body text
- Specified by:
doStartTag in interface Tag- Overrides:
doStartTag in class BodyTagSupport
- Throws:
JspException
doEndTag
public int doEndTag()
throws JspException
- Highlight keywords in the text of the tag's body
- Specified by:
doEndTag in interface Tag- Overrides:
doEndTag in class BodyTagSupport
- Throws:
JspException