net.mlw.vlh.web.tag
Class BaseColumnTag

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
All Implemented Interfaces:
Attributeable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ControlsTag, DefaultColumnCheckBoxTag, DefaultColumnTag

public class BaseColumnTag
extends ConfigurableTag

Base class for columnTags

Version:
$Revision: 1.5 $ $Date: 2006/01/06 10:53:24 $
Author:
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
BaseColumnTag()
           
 
Method Summary
 int doEndTag()
           
 DefaultRowTag getRowTag()
           
 String getTitle()
           
 String getTitleKey()
           
 String getToolTip()
          The value to display in the column header tooltip.
 String getToolTipKey()
          Return the key of the localized message to be displayed in the column header tooltip.
 void release()
          Called on a Tag handler to release state.
 void setTitle(String title)
          Sets the value to display in the column header.
 void setTitleKey(String titleKey)
           
 void setToolTip(String toolTip)
          The value to display in the column header tooltip.
 void setToolTipKey(String toolTipKey)
          Set the key of the localized message to be displayed in the column header tooltip.
 
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, doStartTag, 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

BaseColumnTag

public BaseColumnTag()
Method Detail

getTitle

public String getTitle()
Returns:
Returns the title.

setTitle

public void setTitle(String title)
Sets the value to display in the column header.

Parameters:
title - The value to display in the column header.

getTitleKey

public String getTitleKey()
Returns:
Returns the titleKey.

setTitleKey

public void setTitleKey(String titleKey)
Parameters:
titleKey - The titleKey to set.

getToolTip

public String getToolTip()
The value to display in the column header tooltip. It's shown when a mouse pointer is over the title. It's useful when you don't want a long title but still you'd like to provide to a user a more detailed info about the column. (In html rendered as the attribute 'title' of <th>).

Returns:
The value to display in the column header tooltip.

setToolTip

public void setToolTip(String toolTip)
The value to display in the column header tooltip. (In html rendered as the attribute 'title' of <th>).

Parameters:
toolTip - The value to display in the column header tooltip.

getToolTipKey

public String getToolTipKey()
Return the key of the localized message to be displayed in the column header tooltip. (In html rendered as the attribute 'title' of <th>).

Returns:
The key of the localized message to be displayed in the column header tooltip.
See Also:
ResourceBundleMessageSource

setToolTipKey

public void setToolTipKey(String toolTipKey)
Set the key of the localized message to be displayed in the column header tooltip. (In html rendered as the attribute 'title' of <th>).

Parameters:
toolTipKey - The key of the localized message to be displayed in the column header tooltip.
See Also:
ResourceBundleMessageSource

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class ConfigurableTag
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doEndTag()

getRowTag

public DefaultRowTag getRowTag()
                        throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

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 ConfigurableTag
See Also:
Tag.release()


Copyright © 2003-2006 mlavilson. All Rights Reserved.