net.mlw.vlh.web.tag
Class DefaultColumnTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
net.mlw.vlh.web.tag.ConfigurableTag
net.mlw.vlh.web.tag.BaseColumnTag
net.mlw.vlh.web.tag.DefaultColumnTag
- All Implemented Interfaces:
- Attributeable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, Serializable, javax.servlet.jsp.tagext.Tag
- public class DefaultColumnTag
- extends BaseColumnTag
This tag creates a column in a row, emphase wanted data
and format column with specific locale. If is it not specified,
use spring LocaleResolver to obtain default locale.
- Version:
- $Revision: 1.23 $ $Date: 2006/01/06 10:53:54 $
- Author:
- Matthew L. Wilson, Andrej Zachar
- See Also:
- Serialized Form
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 |
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, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
DefaultColumnTag
public DefaultColumnTag()
getAdapterProperty
public String getAdapterProperty()
- Returns:
- Returns the adapterProperty. if it is null, return ordinary property.
setAdapterProperty
public void setAdapterProperty(String sqlProperty)
- Parameters:
sqlProperty
- The sql property name to use to retrieve do for this columns in adapter.
init
protected void init()
throws javax.servlet.jsp.JspException
- Initialization is called at the beginning of
doStart
.
Subclasses have to call either super.init()
or super.doStart()
.
- Throws:
javax.servlet.jsp.JspException
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
- See Also:
Tag.doStartTag()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class BaseColumnTag
- Throws:
javax.servlet.jsp.JspException
- See Also:
Tag.doEndTag()
getColumnStyleClass
public String getColumnStyleClass()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
setSortable
public void setSortable(String value)
- Sets the defaultSort property.
- Parameters:
value
- Valid values are "asc" and "desc".
getProperty
public String getProperty()
- Returns:
- Returns the property.
setProperty
public void setProperty(String property)
- Sets the javabean property name of this column
used to get data from list returned by adapter.
- Parameters:
property
- The javabean property name of this column.
getFormat
public String getFormat()
- Returns:
- Returns the format.
setFormat
public void setFormat(String format)
- Parameters:
format
- The format to set.
getSum
public String getSum()
- Returns:
- Returns the sum.
setSum
public void setSum(String sum)
- Parameters:
sum
- The sum to set.
getDefault
public String getDefault()
- Returns:
- Returns the defaultValue.
setDefault
public void setDefault(String defaultValue)
- Parameters:
defaultValue
- The defaultValue to set.
getEmphasisPattern
public String getEmphasisPattern()
- Returns:
- Returns the emphasisPattern.
setEmphasisPattern
public void setEmphasisPattern(String emphasisPattern)
- It is used to emphasis part of text part of content of the displayed
table cell. if emphasisPattern is empty("") sets it to null.
- Parameters:
emphasisPattern
- The emphasisPattern to set.
setLocale
public void setLocale(Locale locale)
- Parameters:
locale
- The locale to set for column.
getGroupKey
public String getGroupKey()
- Returns:
- Returns the groupKey.
setGroupKey
public void setGroupKey(String groupKey)
- Parameters:
groupKey
- The groupKey to set.
getNestedColumnInfoList
public List getNestedColumnInfoList()
- Returns:
- Returns the nestedColumnInfoList.
setNestedColumnInfoList
public void setNestedColumnInfoList(List nestedColumnInfoList)
- Parameters:
nestedColumnInfoList
- The nestedColumnInfoList to set.
release
public void release()
- Called on a Tag handler to release state.
The page compiler guarantees that JSP page implementation
objects will invoke this method on all tag handlers,
but there may be multiple invocations on doStartTag and doEndTag in between.
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class BaseColumnTag
- See Also:
Tag.release()
Copyright © 2003-2006 mlavilson. All Rights Reserved.