org.infoglue.deliver.taglib.common
Class CropTextTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.infoglue.deliver.taglib.AbstractTag
          extended by org.infoglue.deliver.taglib.common.CropTextTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class CropTextTag
extends AbstractTag

This tag will crop a text sent in

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
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
CropTextTag()
          Default constructor.
 
Method Summary
 int doEndTag()
          Process the end tag.
 void setAdjustForEntities(boolean adjustForEntities)
           
 void setMaxLength(java.lang.String maxLength)
           
 void setStartIndex(java.lang.String startIndex)
           
 void setSuffix(java.lang.String suffix)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class org.infoglue.deliver.taglib.AbstractTag
evaluate, evaluateCollection, evaluateInteger, evaluateList, evaluateString, produceResult, setId, setResultAttribute, write
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CropTextTag

public CropTextTag()
Default constructor.

Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag. Crops the text and adds the suffix.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to continue evaluating the JSP page.
Throws:
javax.servlet.jsp.JspException - if an error occurred while processing this tag.

setMaxLength

public void setMaxLength(java.lang.String maxLength)
                  throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setStartIndex

public void setStartIndex(java.lang.String startIndex)
                   throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setSuffix

public void setSuffix(java.lang.String suffix)
               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setText

public void setText(java.lang.String text)
             throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setAdjustForEntities

public void setAdjustForEntities(boolean adjustForEntities)


Copyright © 2005 InfoGlue.org All Rights Reserved.