public abstract class IlrDTAbstractDataProviderTableModel extends IlrDTAbstractDataProvider
IlrDTDataProvider with an
underlying table model. This class simplifies the populating process of a
decision table from a tabular model.| Constructor and Description |
|---|
IlrDTAbstractDataProviderTableModel() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
getChildren(java.lang.Object object,
IlrDTDefinition definition)
Returns the child elements of the object.
|
abstract int |
getColumnCount()
Returns the number of columns in the model.
|
java.util.Collection |
getObjects(IlrDTDefinition definition)
Returns the root elements of the provided data.
|
java.util.Map |
getProperties(java.lang.Object object,
int index)
Not used in basic use of
IlrDTDataProvider. |
abstract int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValue(java.lang.Object object,
int index)
Returns the value of the
index parameter of the element
object. |
abstract java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex. |
boolean |
isColumnMergeable(int columnIndex)
Defines whether cells in the column
columnIndex of the
underlying table model may be merged. |
boolean |
sameValueAt(int rowIndex,
int columnIndex,
int originRowIndex)
Defines whether two cells of the underlying table model should be merged in
the decision table model.
|
getProperties, getValuepublic java.util.Collection getObjects(IlrDTDefinition definition)
IlrDTDataProviderdefinition - Indicates the number of parameters of items corresponding to the
returned elements.IlrDTDefinition.getExpressionParameterCount()public java.util.Collection getChildren(java.lang.Object object,
IlrDTDefinition definition)
IlrDTDataProviderobject - The parent element of the returned collection of elements.definition - The number of parameters of items corresponding to the returned
elements.IlrDTDefinition.getExpressionParameterCount()public java.lang.Object getValue(java.lang.Object object,
int index)
IlrDTDataProviderindex parameter of the element
object.object - The element corresponding to the item from the decision table
model to be filled.index - Index of the parameter to be retrieved.String value of the index parameter.public java.util.Map getProperties(java.lang.Object object,
int index)
IlrDTDataProviderIlrDTDataProvider.getProperties in interface IlrDTDataProvidergetProperties in class IlrDTAbstractDataProviderpublic abstract int getRowCount()
IlrDTDataProvider
uses this method to determine how many rows it should provide.getColumnCount()public abstract int getColumnCount()
IlrDTDataProvider uses this method to determine how many
columns it should provide.getRowCount()public abstract java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.rowIndex - The row whose value is to be queried.columnIndex - The column whose value is to be queried.public boolean sameValueAt(int rowIndex,
int columnIndex,
int originRowIndex)
(rowIndex, columnIndex) and the cell at
(originRowIndex, columnIndex) are merged, all cells between
have to be merged too. In this basic implementation, two cells are merged
if the value at (rowIndex, columnIndex) is null
as well as all values from (rowIndex, 0) to
(rowIndex, columnIndex - 1).rowIndex - The row index.columnIndex - The column index.originRowIndex - The origin row index.true if the cell at
(rowIndex, columnIndex) should be merged with the
cell at (originRowIndex, columnIndex).public boolean isColumnMergeable(int columnIndex)
columnIndex of the
underlying table model may be merged. This is useful to define that
condition columns are mergeable and actions columns are not. In the basic
implementation, all columns are mergeable.columnIndex - © Copyright IBM Corp. 1987, 2017