com.taggercat.tags
Class DataSourceRowNumberTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.taggercat.tags.DataSourceRowNumberTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class DataSourceRowNumberTag
extends javax.servlet.jsp.tagext.TagSupport

This tag prints the current tcEntity numbers (e.g. "1-10 of 22") for a specified data source. This tag has a body. Usage is :
Rows: <tc:rowNumbers dsn='customer' > -of- </tc:rowNumbers>

See Also:
Serialized Form
 

Field Summary
 
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
DataSourceRowNumberTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 boolean isPrefetchRowCount()
          Should this tag only display the prefetch tcEntity counts.
 void setDsn(java.lang.String dsn)
          Sets the name of the data source.
 void setPrefetchRowCount(boolean prefetchRowCount)
           
 void setTablesize(int newTableSize)
          Sets the size of the repeating region table where this tag is being used.
 void setTablesize(java.lang.String newTableSize)
          Sets the size of the repeating region table where this tag is being used.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceRowNumberTag

public DataSourceRowNumberTag()
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 javax.servlet.jsp.tagext.TagSupport
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 javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

setDsn

public void setDsn(java.lang.String dsn)
Sets the name of the data source.

Parameters:
dsn - Name of the data source.

setTablesize

public void setTablesize(java.lang.String newTableSize)
Sets the size of the repeating region table where this tag is being used. This can be set with "all"

Parameters:
newTableSize - the owning table size.

setTablesize

public void setTablesize(int newTableSize)
Sets the size of the repeating region table where this tag is being used. This can be set with "all"

Parameters:
newTableSize - the owning table size.

isPrefetchRowCount

public boolean isPrefetchRowCount()
Should this tag only display the prefetch tcEntity counts.

Returns:
true if this tag only display the prefetch tcEntity counts

setPrefetchRowCount

public void setPrefetchRowCount(boolean prefetchRowCount)