net.mlw.vlh.web.tag
Class DefaultColumnTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bynet.mlw.vlh.web.tag.ConfigurableTag
              extended bynet.mlw.vlh.web.tag.BaseColumnTag
                  extended bynet.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

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
DefaultColumnTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 String getAdapterProperty()
           
 String getColumnStyleClass()
           
 String getDefault()
           
 String getEmphasisPattern()
           
 String getFormat()
           
 String getGroupKey()
           
 List getNestedColumnInfoList()
           
 String getProperty()
           
 String getSum()
           
protected  void init()
          Initialization is called at the beginning of doStart.
 void release()
          Called on a Tag handler to release state.
 void setAdapterProperty(String sqlProperty)
           
 void setDefault(String defaultValue)
           
 void setEmphasisPattern(String emphasisPattern)
          It is used to emphasis part of text part of content of the displayed table cell.
 void setFormat(String format)
           
 void setGroupKey(String groupKey)
           
 void setLocale(Locale locale)
           
 void setNestedColumnInfoList(List nestedColumnInfoList)
           
 void setProperty(String property)
          Sets the javabean property name of this column used to get data from list returned by adapter.
 void setSortable(String value)
          Sets the defaultSort property.
 void setSum(String sum)
           
 
Methods inherited from class net.mlw.vlh.web.tag.BaseColumnTag
getRowTag, getTitle, getTitleKey, getToolTip, getToolTipKey, setTitle, setTitleKey, setToolTip, setToolTipKey
 
Methods inherited from class net.mlw.vlh.web.tag.ConfigurableTag
appendClassCellAttribute, getAttributes, getCellAttributes, resetAttributes, setAttributes, setCellAttribute
 
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
 

Constructor Detail

DefaultColumnTag

public DefaultColumnTag()
Method Detail

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.