|
Version 4.10.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object SimpleTagSupport hirondelle.web4j.ui.tag.TagHelper hirondelle.web4j.ui.tag.AlternatingRow
public final class AlternatingRow
Generate table rows which alternate in appearance, to increase legibility.
The body of this tag contains one or more TR tags. Each TR tag contains a class attribute, specifying a Cascading Style Sheet class. This tag will simply remove or update the class attribute for alternate occurrences of each TR tag found in its body.
If the optional altClass attribute is specified, then the class attribute of each TR is updated to an alternate value, instead of being removed.
Constructor Summary | |
---|---|
AlternatingRow()
|
Method Summary | |
---|---|
protected String |
getEmittedText(String aOriginalBody)
For each TR tag found in the body, remove or update the class attribute. |
void |
setAltClass(String aAltClass)
Optional name of a CSS class. |
Methods inherited from class hirondelle.web4j.ui.tag.TagHelper |
---|
checkForContent, crossCheckAttributes, doTag, getPageContext, getPageName, getRequest, getResponse |
Methods inherited from class SimpleTagSupport |
---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlternatingRow()
Method Detail |
---|
public void setAltClass(String aAltClass)
The CSS class for each TR tag found in the body of this tag will be updated to this value, for alternating rows. If this item is not specified, then the TR's class attribute is simply removed instead of updated.
aAltClass
- must have content.protected String getEmittedText(String aOriginalBody) throws JspException, IOException
If no altClass is specified, then the class attribute is simply removed entirely. Otherwise, it updated to the altClass value.
getEmittedText
in class TagHelper
aOriginalBody
- is the evaluated body of this tag. If there is no body, or
if the body is present but empty, then it is null.
JspException
IOException
|
Version 4.10.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |