|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.AbstractExpEvalTag
com.taggercat.tags.RepeatedRegionTag
public class RepeatedRegionTag
This tag bounds a repeated region associated with a DataSource. The contents in the region are repeated the specified size times, or until the end of the data source is reached.
![]() |
![]() |
| Field Summary | |
|---|---|
static java.lang.Integer |
RRSTATE_ALL_ROWS
|
static java.lang.Integer |
RRSTATE_AT_END
|
static java.lang.Integer |
RRSTATE_AT_START
|
| 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 | |
|---|---|
RepeatedRegionTag()
Creates a new tag instance. |
|
| Method Summary | |
|---|---|
int |
doAfterBody()
Process the body of the tag, if the data source cursor is not past the last tcEntity and the max size has not been exceeded. |
int |
doEndTag()
The iteration has completed, and saves the iteration count as a page context variable. |
int |
doStartTag()
Process the start tag for this instance. |
TCEntity |
getCurrentRow()
|
DataSource |
getDataSource()
Returns the data source instance used in the repeated region. |
java.lang.String |
getDsn()
Gets the data source name for the repeated region. |
int |
getRowsDisplayed()
Get the number of rows currently displayed in the repeated region |
boolean |
isClearResultSet()
|
void |
release()
|
void |
setClearResultSet(boolean clearResultSet)
|
void |
setCondition(java.lang.String condition)
Sets the condition attribute. |
void |
setCurrentEntity(TCEntity currentRow)
|
void |
setDsn(java.lang.String dsn)
Sets the name of the data source. |
void |
setReset(java.lang.String reset)
Sets the reset attribute. |
void |
setRowVar(java.lang.String rowVar)
Sets the rowVar attribute. |
void |
setSize(java.lang.String size)
Sets the max size ( number of iterations) the RepeatedRegionTag will process the contents. |
java.lang.String |
toString()
Returns a description of the tags values. |
| Methods inherited from class com.taggercat.tags.AbstractExpEvalTag |
|---|
getModel, resolveProperty, setScope, setValue, setVar |
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Integer RRSTATE_AT_START
public static final java.lang.Integer RRSTATE_AT_END
public static final java.lang.Integer RRSTATE_ALL_ROWS
| Constructor Detail |
|---|
public RepeatedRegionTag()
| Method Detail |
|---|
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class AbstractExpEvalTagjavax.servlet.jsp.JspException
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class AbstractExpEvalTagjavax.servlet.jsp.JspException - Thrown if writing to page fails.
public DataSource getDataSource()
public java.lang.String getDsn()
public int getRowsDisplayed()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportpublic void setDsn(java.lang.String dsn)
dsn - the new dsn valuepublic void setReset(java.lang.String reset)
reset - the new reset valuepublic void setRowVar(java.lang.String rowVar)
rowVar - the new rowVar valuepublic void setSize(java.lang.String size)
size - the new size valuepublic void setCondition(java.lang.String condition)
condition - the new condition expression valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic TCEntity getCurrentRow()
public void setCurrentEntity(TCEntity currentRow)
public boolean isClearResultSet()
public void setClearResultSet(boolean clearResultSet)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||