The RttpContainerGridDataProvider
class allows grids to be populated using an RTTP container available on
some Liberator. It is a concrete example of a caplin.grid.GridDataProvider class —
what is typically used to allow data to be made available within a grid.
Attributes | Name and Description |
---|---|
|
caplin.grid.RttpContainerGridDataProvider()
Constructs an |
Attributes | Name and Description |
---|---|
|
void
fetchSnapshot(GridDataProviderSnapshotListener oGridDataProviderSnapshotListener)
Fetch all records from the RTTP container from the server, including off-screen records. |
|
void
injectData( sSubject, mData)
|
|
void
setEditable(boolean bEditable)
Sets editable feature to true - i.e. |
|
void
setRowData(String sSubject, Map mRowData)
Sets the row with the specified row data. |
|
void
updateContainerName(String sContainerName)
Discards the current SL4B subscription and creates a new subscription to the specified container. |
►
caplin.grid.RttpContainerGridDataProvider()
Constructs an RttpContainerGridDataProvider
instance — end-users will never need to do this
themselves since grids are fully constructed based on their XML definition files by the
caplin.grid.GridGenerator class.
►
void
fetchSnapshot(GridDataProviderSnapshotListener oGridDataProviderSnapshotListener)
Fetch all records from the RTTP container from the server, including off-screen records. Once all records have been received, the GridDataListener
GridDataProviderSnapshotListener | oGridDataProviderSnapshotListener | The listener to call with the snapshot. |
►
void
injectData( sSubject, mData)
sSubject | ||
mData |
►
void
setEditable(boolean bEditable)
Sets editable feature to true - i.e. enables provider to edit data.
boolean | bEditable | True to allow editing, false otherwise. |
►
void
setRowData(String sSubject, Map mRowData)
Sets the row with the specified row data.
String | sSubject | The subject (objectName) of the row to be updated |
Map | mRowData | Map with field name and values to be updated for the subject specified |
►
void
updateContainerName(String sContainerName)
Discards the current SL4B subscription and creates a new subscription to the specified container.
String | sContainerName | The old subscription will be discarded, and a new one created for this container. |