com.fdsapi
Class DataSetConditional
java.lang.Object
|
+--com.fdsapi.DataSet
|
+--com.fdsapi.DataSetCellBase
|
+--com.fdsapi.DataSetConditional
- All Implemented Interfaces:
- java.lang.Cloneable
- public class DataSetConditional
- extends DataSetCellBase
DataSet used to take different action depending on the specified data. Sample use in a template
<!-- body_cell_data 0,9 -->Type==Conditional
if==0 ifValue==0 elseValue==<a href='Main?pageName=contractProductList>##this</a><!-- body_cell_data 0,9 -->
if the value in the cell equals 0 the display 0, else display the given href
View Code
|
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)
Execute a command against the specified index. |
| 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 |
DataSetConditional
public DataSetConditional()
createFactoryInstance
public DataSet createFactoryInstance()
- Description copied from class:
DataSet
- A Factory method that creates a clone of this DataSet (see gang of 4 "Factory method" pattern).
This allows the type of DataSet to be determined at runtime.
- Specified by:
createFactoryInstance in class DataSet
execute
public void execute(int y)
- Description copied from class:
DataSet
- Execute a command against the specified index. Index can represent a particular column, cell or other entity
- Specified by:
execute in class DataSet