|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.string.StringTagSupport
org.apache.taglibs.string.WordWrapTag
public class WordWrapTag
Word-wrap a String. This involves formatting a long String to fit within a certain character width of page. A delimiter may be passed in to put at the end of each line and a splitting character can be specified for when a word has to be cut in half.
| 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 | |
|---|---|
WordWrapTag()
|
|
| Method Summary | |
|---|---|
java.lang.String |
changeString(java.lang.String text)
Perform a transformation on the passed in String. |
java.lang.String |
getDelimiter()
Get the delimiter property |
boolean |
getDelimiterInside()
Get the delimiterInside property |
java.lang.String |
getSplit()
Get the split property |
java.lang.String |
getWidth()
Get the width property |
void |
initAttributes()
Initialise any properties to default values. |
void |
setDelimiter(java.lang.String delimiter)
Set the delimiter property |
void |
setDelimiterInside(boolean delimiterInside)
Set the delimiterInside property |
void |
setSplit(java.lang.String split)
Set the split property |
void |
setWidth(java.lang.String width)
Set the width property |
| Methods inherited from class org.apache.taglibs.string.StringTagSupport |
|---|
doEndTag, evaluateString, getVar, setVar |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doAfterBody, doInitBody, doStartTag, 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 |
|---|
public WordWrapTag()
| Method Detail |
|---|
public java.lang.String getWidth()
public void setWidth(java.lang.String width)
width - String propertypublic java.lang.String getDelimiter()
public void setDelimiter(java.lang.String delimiter)
delimiter - String propertypublic java.lang.String getSplit()
public void setSplit(java.lang.String split)
split - String propertypublic boolean getDelimiterInside()
public void setDelimiterInside(boolean delimiterInside)
delimiterInside - property
public java.lang.String changeString(java.lang.String text)
throws javax.servlet.jsp.JspException
StringTagSupport
changeString in class StringTagSupporttext - String to be manipulated
javax.servlet.jsp.JspExceptionpublic void initAttributes()
StringTagSupport
initAttributes in class StringTagSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||