DLESE Tools
v1.6.0

org.dlese.dpc.dds.tags
Class KeywordsHighlightTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by 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

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
KeywordsHighlightTag()
           
 
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 javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

KeywordsHighlightTag

public KeywordsHighlightTag()
Method Detail

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

DLESE Tools
v1.6.0