|
||||||||||
| 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.RowStyleTag
public class RowStyleTag
This tags selects the CSS style to use for the current tcEntity displayed in a
repeating region (typically a table).
This tag is only valid inside a RepeatedRegion. The repeated region is always
associated with a data source. If the current tcEntity is an evenly numbered row, then
the even value (CSS Style etc.) is printed. Otherwise, the odd value is printed.
If the current style is specified, and the tcEntity is the "current" tcEntity
then the current style is printed; taking precedence over the other styles.

| 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 | |
|---|---|
RowStyleTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
|
int |
doStartTag()
Prints the even style value if the tcEntity is an even numbered tcEntity, otherwise prints the odd style value. |
void |
setCurrent(java.lang.String currentStyle)
Sets the style to be used in current rows. |
void |
setEven(java.lang.String evenStyle)
Sets the style to be used in Even tcEntity numbers. |
void |
setOdd(java.lang.String oddStyle)
Sets the style to be used in odd tcEntity numbers. |
java.lang.String |
toString()
Returns the String representation of the tag. |
| 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, wait, wait, wait |
| Constructor Detail |
|---|
public RowStyleTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public void setCurrent(java.lang.String currentStyle)
currentStyle - the currentStyle valuepublic void setEven(java.lang.String evenStyle)
evenStyle - the evenStyle valuepublic void setOdd(java.lang.String oddStyle)
oddStyle - the oddStyle value, or the value used for odd numbered rowspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||