|
|||||||||||
| 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.displaytag.tags.ColumnTag
This tag works hand in hand with the TableTag to display a list of objects. This describes a column of data in the TableTag. There can be any number of columns that make up the list.
This tag does no work itself, it is simply a container of information. The TableTag does all the work based on the information provided in the attributes of this tag.
| 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 | |
ColumnTag()
|
|
| Method Summary | |
void |
addClass(java.lang.String value)
Adds a css class to the class attribute (html class suports multiple values). |
boolean |
availableForMedia(MediaTypeEnum mediaType)
Is this column configured for the media type? |
int |
doEndTag()
Passes attribute information up to the parent TableTag. |
int |
doStartTag()
|
void |
release()
|
void |
setAlign(java.lang.String value)
Deprecated. use css in "class" or "style" |
void |
setAutolink(boolean value)
setter for the "autolink" tag attribute. |
void |
setBackground(java.lang.String value)
Deprecated. use css in "class" or "style" |
void |
setBgcolor(java.lang.String value)
Deprecated. use css in "class" or "style" |
void |
setClass(java.lang.String value)
setter for the "class" tag attribute. |
void |
setDecorator(java.lang.String value)
setter for the "decorator" tag attribute. |
void |
setGroup(int value)
setter for the "group" tag attribute. |
void |
setHeaderClass(java.lang.String value)
setter for the "headerClass" tag attribute. |
void |
setHeight(java.lang.String value)
Deprecated. use css in "class" or "style" |
void |
setHref(java.lang.String value)
setter for the "href" tag attribute. |
void |
setMaxLength(int value)
setter for the "maxLength" tag attribute. |
void |
setMaxWords(int value)
setter for the "maxWords" tag attribute. |
void |
setMedia(java.lang.String media)
Tag setter. |
void |
setNowrap(java.lang.String value)
Deprecated. use css in "class" or "style" |
void |
setNulls(boolean value)
setter for the "nulls" tag attribute. |
void |
setParamId(java.lang.String value)
setter for the "paramId" tag attribute. |
void |
setParamName(java.lang.String value)
setter for the "paramName" tag attribute. |
void |
setParamProperty(java.lang.String value)
setter for the "paramProperty" tag attribute. |
void |
setParamScope(java.lang.String value)
setter for the "paramScope" tag attribute. |
void |
setProperty(java.lang.String value)
setter for the "property" tag attribute. |
void |
setSortable(boolean value)
setter for the "sortable" tag attribute. |
void |
setSortProperty(java.lang.String value)
setter for the "sortProperty" tag attribute. |
void |
setStyle(java.lang.String value)
setter for the "style" tag attribute. |
void |
setTitle(java.lang.String value)
setter for the "title" tag attribute. |
void |
setTitleKey(java.lang.String value)
setter for the "titleKey" tag attribute. |
void |
setUrl(java.lang.String value)
setter for the "url" tag attribute. |
void |
setValign(java.lang.String value)
Deprecated. use css in "class" or "style" |
void |
setWidth(java.lang.String value)
Deprecated. use css in "class" or "style" |
java.lang.String |
toString()
|
| 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, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
| Constructor Detail |
public ColumnTag()
| Method Detail |
public void setProperty(java.lang.String value)
value - attribute valuepublic void setTitle(java.lang.String value)
value - attribute valuepublic void setNulls(boolean value)
value - attribute valuepublic void setSortable(boolean value)
value - attribute valuepublic void setAutolink(boolean value)
value - attribute valuepublic void setGroup(int value)
value - attribute valuepublic void setTitleKey(java.lang.String value)
value - property namepublic void setHref(java.lang.String value)
value - attribute valuepublic void setUrl(java.lang.String value)
value - attribute valuepublic void setParamId(java.lang.String value)
value - attribute valuepublic void setParamName(java.lang.String value)
value - attribute valuepublic void setParamProperty(java.lang.String value)
value - attribute valuepublic void setParamScope(java.lang.String value)
value - attribute valuepublic void setMaxLength(int value)
value - attribute valuepublic void setMaxWords(int value)
value - attribute valuepublic void setWidth(java.lang.String value)
value - attribute valuepublic void setAlign(java.lang.String value)
value - attribute valuepublic void setBackground(java.lang.String value)
value - attribute valuepublic void setBgcolor(java.lang.String value)
value - attribute valuepublic void setHeight(java.lang.String value)
value - attribute valuepublic void setNowrap(java.lang.String value)
value - attribute valuepublic void setValign(java.lang.String value)
value - attribute valuepublic void setStyle(java.lang.String value)
value - attribute valuepublic void setClass(java.lang.String value)
value - attribute valuepublic void addClass(java.lang.String value)
value - attribute valuepublic void setHeaderClass(java.lang.String value)
value - attribute valuepublic void setDecorator(java.lang.String value)
value - attribute valuepublic void setSortProperty(java.lang.String value)
value - attribute valuepublic boolean availableForMedia(MediaTypeEnum mediaType)
mediaType - the currentMedia type
public void setMedia(java.lang.String media)
media - the space delimited list of supported types
public int doEndTag()
throws javax.servlet.jsp.JspException
When we hit the end of the tag, we simply let our parent (which better be a TableTag) know what the user wants to do with this column. We do that by simple registering this tag with the parent. This tag's only job is to hold the configuration information to describe this particular column. The TableTag does all the work.
javax.servlet.jsp.JspException - if this tag is being used outside of a <display:list...> tag.Tag.doEndTag()public void release()
Tag.release()
public int doStartTag()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionTag.doStartTag()public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||