org.opensubsystems.patterns.scrollabletable.www
Class ScrollableTableCheckTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.opensubsystems.core.www.PageElementCacheTag
              extended by org.opensubsystems.patterns.scrollabletable.www.ScrollableTableCheckTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class ScrollableTableCheckTag
extends org.opensubsystems.core.www.PageElementCacheTag

Custom tag to allow set specific configuration value to affect 'check' configuration for the scrollable table. This configuration value overrides the default settings controlling if the table shows/hides checkboxes for each line. This flag will apply to all tables following this tag on the page. This attribute works only for tables created using scrolltbl tags content of which is generated using custom tags derived from ListTag class.

Version:
$Id: ScrollableTableCheckTag.java,v 1.9 2007/01/07 06:14:16 bastafidli Exp $
Author:
Julo Legeny
See Also:
Serialized Form
Code reviewer:
Miro Halas
Code reviewed:
1.7 2006/09/25 15:04:58 bastafidli

Field Summary
protected  java.lang.String m_strCheck
          Flag if the list should contain a checkboxes included in each row.
 
Fields inherited from class org.opensubsystems.core.www.PageElementCacheTag
CACHE_INDICATOR, CSS_ELEMENT, JS_ELEMENT, m_strCacheas, m_strId, PAGE_ELEMENTS_CACHE, SCRIPT_ELEMENT
 
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
ScrollableTableCheckTag()
          Constructor for custom tag.
 
Method Summary
 int doEndTag()
          
 int doStartTag()
          
 java.lang.String getCheck()
           
 void setCheck(boolean bCheck)
           
 void setCheck(java.lang.String strCheck)
           
 
Methods inherited from class org.opensubsystems.core.www.PageElementCacheTag
cache, getCacheas, getCachedContent, getCachedContent, getCachedContent, getCachedContentElements, getId, setCacheas, setId
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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
 

Field Detail

m_strCheck

protected java.lang.String m_strCheck
Flag if the list should contain a checkboxes included in each row. These checkboxes will be used for selecting particular item (row) in the list. This attribute should say true or 1. Not required.

Constructor Detail

ScrollableTableCheckTag

public ScrollableTableCheckTag()
Constructor for custom tag.

Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class org.opensubsystems.core.www.PageElementCacheTag
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class org.opensubsystems.core.www.PageElementCacheTag
Throws:
javax.servlet.jsp.JspException

getCheck

public java.lang.String getCheck()
Returns:
String - If checkbox will be present in each row then this attribute should say true or 1.

setCheck

public void setCheck(java.lang.String strCheck)
Parameters:
strCheck - - If checkbox will be present in each row then this attribute should say true or 1.

setCheck

public void setCheck(boolean bCheck)
Parameters:
bCheck - - If checkbox will be present in each row then this attribute should say true or 1.


Copyright © 2003 - 2006 OpenSubsystems s.r.o.