Caplin Trader 5.1.0

Class: module:ct-grid/DummyGridDataProvider

module:ct-grid/DummyGridDataProvider()

new module:ct-grid/DummyGridDataProvider()

Constructs a DummyGridDataProvider.

A DummyGridDataProvider defines provider for grids that wish to connect to RTTP containers. this interface.

Implements:

Methods

addDataProviderListener(oDataProviderListener)

Adds a GridDataProviderListener to wishes to listen to data updates.

Parameters:
Name Type Description
oDataProviderListener module:ct-grid/GridDataProviderListener

The listener to add.

Implements:
See:

removeDataProviderListener(oDataProviderListener)

Removes a GridDataProviderListener that no longer wishes to listen to data updates.

Parameters:
Name Type Description
oDataProviderListener module:ct-grid/GridDataProviderListener

The listener to remove.

Implements:
See:

setRequiredFields(nStartIndex, nSize)

Sets the start index and total number of rows that this DummyGridDataProvider should use when notifying listeners of row updates.

Parameters:
Name Type Description
nStartIndex int

The start index of the first row within the range.

nSize int

The number of rows within the range.

Implements:

setRowRange(nStartIndex, nSize)

Sets the start index and total number of rows that this DummyGridDataProvider should use when notifying listeners of row updates.

Parameters:
Name Type Description
nStartIndex int

The start index of the first row within the range.

nSize int

The number of rows within the range.

Implements:

supportsFeature(feature)

Determine whether this instance of GridDataProvider supports a particular feature.

Parameters:
Name Type Description
feature int

the feature constant that is being queried.

Implements:
See: