|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.fdsapi.DataSet
|
+--com.fdsapi.DataSetCellBase
|
+--com.fdsapi.DataSetCellAlternating
Used when different text is required for every other row or cell (or any other Template Tag). Sample use in a template that would use a stylesheet entry of to specify different colors for odd and even rows.
<!-- BODY_ROW_PREFIX -->Type==Alternating
| Field Summary |
| Fields inherited from class com.fdsapi.DataSet |
dataSetParm, templateTagType, variables |
| Constructor Summary | |
DataSetCellAlternating()
|
|
| Method Summary | |
DataSet |
createFactoryInstance()
A Factory method that creates a clone of this DataSet (see gang of 4 "Factory method" pattern). |
void |
execute(int y)
Use modulo math to determine if this element (which could be a row, col etc) is odd or even and take appropriate action by placing the "odd" or "even" template variable contents into the text buffer. |
| Methods inherited from class com.fdsapi.DataSetCellBase |
createDataIterator, getIncrementData, getType |
| Methods inherited from class com.fdsapi.DataSet |
clone, createFactoryInstance, execute, getCellData, getDataSetParm, getMiscDataMap, getStringBuffer, getTabularData, getTemplateVariables, getVariableValue, initialize, log, next, setDataSetParm, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DataSetCellAlternating()
| Method Detail |
public DataSet createFactoryInstance()
DataSet
createFactoryInstance in class DataSetpublic void execute(int y)
execute in class DataSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||