SyntheticGridDataProvider
defines a provider for grids that generates a simple
increments each cells content every second.
Attributes | Name and Description |
---|---|
|
caplin.grid.SyntheticGridDataProvider()
Constructs a |
Attributes | Name and Description |
---|---|
|
void
addDataProviderListener(caplin.grid.GridDataProviderListener oDataProviderListener)
Adds a |
|
void
configureDataProvider(Element eXmlConfigurationNode)
Allow the data provider to configure itself based on the XML attributes from the node used to configure the data provider. |
|
void
getSortRule()
Get the rule, if one exists, that is used to sort the data within the row model, since we do not use sorting this will always return null |
|
void
removeDataProviderListener()
Removes a |
|
void
setRequiredFields(Array pFieldNames)
Sets the required fields that this data provider should provide within each record. |
|
void
setRowRange(int nStartIndex, int nSize)
Sets the start index and total number of rows that this |
►
caplin.grid.SyntheticGridDataProvider()
Constructs a caplin.grid.SyntheticGridDataProvider
.
►
void
addDataProviderListener(caplin.grid.GridDataProviderListener oDataProviderListener)
Adds a GridDataProviderListener
to wishes to listen to data updates.
caplin.grid.GridDataProviderListener | oDataProviderListener | The listener to add. |
►
void
configureDataProvider(Element eXmlConfigurationNode)
Allow the data provider to configure itself based on the XML attributes from the node used to configure the data provider.
Element | eXmlConfigurationNode | Access to the XML node that contains the row names that will be displayed within the first column of the grid. |
►
void
getSortRule()
Get the rule, if one exists, that is used to sort the data within the row model, since we do not use sorting this will always return null
►
void
removeDataProviderListener()
Removes a GridDataProviderListener
that no longer wishes to listen to data updates.
caplin.grid.GridDataProviderListener | oDataProviderListener The listener to remove. |
►
void
setRequiredFields(Array pFieldNames)
Sets the required fields that this data provider should provide within each record.
Array | pFieldNames | A list of field names as strings, these are the column names provided within the gridDefinition |
►
void
setRowRange(int nStartIndex, int nSize)
Sets the start index and total number of rows that this SyntheticGridDataProvider
should use when notifying listeners
of row updates.
int | nStartIndex | The start index of the first row within the range. |
int | nSize | The number of rows within the range, which isn't used in this example |