|
||||||||||
| 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
public class 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 | |
|---|---|
int |
doEndTag()
Passes attribute information up to the parent TableTag. |
int |
doStartTag()
|
java.util.List |
getSupportedMedia()
Obtain the list of media types this object supports. |
protected TableTag |
getTableTag()
Looks up the parent table tag. |
void |
release()
|
void |
setAutolink(boolean value)
setter for the "autolink" tag attribute. |
void |
setClass(java.lang.String value)
setter for the "class" tag attribute. |
void |
setComparator(java.lang.Object comparatorObj)
Set the comparator, classname or object. |
void |
setDecorator(java.lang.String value)
setter for the "decorator" tag attribute. |
void |
setDefaultorder(java.lang.String value)
sets the sorting order for the sorted column. |
void |
setEscapeXml(boolean value)
setter for the "escapeXml" tag attribute. |
void |
setFormat(java.lang.String value)
setter for the "format" 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 |
setHeaderScope(java.lang.String value)
setter for the "headerScope" tag attribute. |
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 |
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 |
setScope(java.lang.String value)
setter for the "scope" tag attribute. |
void |
setSortable(boolean value)
setter for the "sortable" tag attribute. |
void |
setSortName(java.lang.String sortName)
sets the name given to the server when sorting this column |
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 |
setSupportedMedia(java.util.List media)
Configure the list of media types this object will support. |
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 |
setTotal(boolean totals)
Setter for totals. |
void |
setUrl(java.lang.String value)
setter for the "url" tag attribute. |
void |
setValue(java.lang.Object value)
setter for the "value" tag attribute. |
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 setTotal(boolean totals)
totals - the valuepublic void setProperty(java.lang.String value)
value - attribute valuepublic void setValue(java.lang.Object value)
value - attribute valuepublic void setComparator(java.lang.Object comparatorObj)
comparatorObj - the comparator, classname or objectpublic void setTitle(java.lang.String value)
value - attribute valuepublic void setFormat(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 setEscapeXml(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 setScope(java.lang.String value)
value - attribute valuepublic void setHeaderScope(java.lang.String value)
value - attribute valuepublic void setMaxLength(int value)
value - attribute valuepublic void setMaxWords(int value)
value - attribute valuepublic void setStyle(java.lang.String value)
value - attribute valuepublic void setClass(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 valueprotected TableTag getTableTag()
public void setMedia(java.lang.String media)
media - the space delimited list of supported typespublic void setSupportedMedia(java.util.List media)
MediaUtil.SupportsMedia
setSupportedMedia in interface MediaUtil.SupportsMediamedia - The list of media types this object will support.MediaUtil.SupportsMedia.setSupportedMedia(java.util.List)public java.util.List getSupportedMedia()
MediaUtil.SupportsMedia
getSupportedMedia in interface MediaUtil.SupportsMediaMediaUtil.SupportsMedia.getSupportedMedia()public void setSortName(java.lang.String sortName)
sortName - name given to the server to sort this column
public void setDefaultorder(java.lang.String value)
throws InvalidTagAttributeValueException
value - "ascending" or "descending"
InvalidTagAttributeValueException - if value is not one of "ascending" or "descending"
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.
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - if this tag is being used outside of a <display:list...> tag.Tag.doEndTag()public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportTag.release()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionTag.doStartTag()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||