Class: cCJGridDataSource

Module location: cCJGridDataSource.pkg line 17 (view source)

Class Hierarchy:

cObjectcCJGridDataSource

Direct Known Subclasses:

cCJGridCachedDataSource,

Class Definition

Properties

Boolean[]pbCurrentColumnChanged
BooleanpbDataSourceSynchRequired
BooleanpbRowChanged
tDataSourceRowpCurrentDataSourceRow
tDataSourceRow[]pDataSource
all private
Handle[]pDataSourceColumnObjects
IntegerpiSelectedRow

Functions and Procedures

AddColumn(Handle hoColumn)
Adds column metadata information to the datasource
BooleanAllDataIsLoaded()
returns true if all data is loaded
BooleanCanAddRow()
BooleanCanDeleteRow()
BooleanCanSaveRow()
ClearChangedStates()
IntegerColumnCount()
Construct_Object()
tDataSourceRowCreateClearedDataSourceRow()
Creates a cleared row. Used by subclasses
tDataSourceRowCreateDataSourceRow()
called to fill a row with data. Often used to fill data from an external source. The column object is called with the assumption that the external source (i.e., file buffers) contain the data needed. Used by sub-classes
StringDataForCell(Integer iRow Integer iColumn)
BooleanDataIsStatic()
returns true if data is static meaning that once loaded there is no need to go back to the external datasource to look for new or deleted rows
tDataSourceRow[]DataSource()
returns entire datasource
BooleanDataSourceSynchRequired()
This signifies that the datasource needs adjusting and that grid needs updating
BooleanDeleteSelectedRow()
deletes the row from the back end
IntegerFindColumnValue(Integer iColumn String sValue Boolean bFindGE Integer iStartRow Boolean bSearchUp)
Find the value for this column in the datasource. This is meant to be used when all data is loaded. bFindGE determines if this is a EQ (false) or GE (True) find. iStartRow determines the row to start the search at. This is datatype aware and if performs the proper search for the expected type.
InitializeDataSource(tDataSourceRow[] DataSource)
created this to initialize the data. It can be left empty or used to load data up front
InsertRow(Integer iIndex)
BooleanIsSelectedRowChanged()
BooleanIsSelectedRowNew()
IntegerNormalizeDataSource(Integer iTopRow)
PageInFirstRow()
PageInLastRow()
IntegerPageInMatchingRow(RowID riId)
PageInRows(Integer ByRef iFirstRow Integer ByRef iLastRow)
RemoveRow(Integer iIndex)
Reset()
Clears all data from datasource
ResetAll()
resets everything - columns and data
ResetSelectedRow()
IntegerRowCount()
RowIDRowTag(Integer iRow)
BooleanSaveSelectedRow()
IntegerSelectedRow()
SelectRow(Integer iRow Boolean bUpdateExternalData)
BooleanShouldSaveSelectedRow()
SortDataSource(tGridSortRules GridSortRules)
sort datasource data based on rules in GridSortRules. This only sorts loaded data and it assumes that sorting it does not invalidate it some way
StoreSelectedRow()
SynchronizeDataForSelectedRow(Boolean bPushData Integer iFlags)
UpdateDataForSelectedRow(Integer iColumn String sValue Boolean bUpdateExternalData)
HandleValidateSelectedRow()

References (1):

ModuleContaining SymbolLine
cDbCJGridDataSource.pkgcCJGridCachedDataSource11