TTableModel

Interface between tabular data and a table viewer.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TBaseObjectA base class for objects that can be used instead of TObject.
3TReferenceCountedObjectObject that keeps track of the number of times it is referenced from other objects
4TTableModel

Source

Table.Model.pas (58)

Description

Tabular data consists of three major components: rows, columns and cells. Rows represent the vertical dimension, columns represent the horizontal dimension and cells represent the actual values for every combination of row and column. A descendant should at least implement GetRowModel, GetColumnModel and GetCells. Both dimensions are treated equally which means you can create tables with both a large dynamic amount of columns and and a large dynamic amount of rows which makes a TTableModel suitable for representing matrices as well as relational data.

Fields

ScopeVisibilityTypeNameDescription
InstanceprivateTValuePathFPath
InstanceprotectedTListenersFListeners
InstanceprotectedTEventGateFEventGate

Methods

ScopeVisibilityResultNameDescription
InstanceprivateSetPath(Value: TValuePath)
InstanceprotectedTriggerCellsChangedEvent(Cells: TInteger32Rectangle)
InstanceprotectedTriggerChangedEvent()
InstanceprotectedTTableModelQueryResultRetrieveThroughGetCells(Query: TTableModelQuery)
InstanceprotectedTValueTextToValue(Position: TInteger32Point; Value: TText)
InstancepublicCreate()
InstancepublicDestroy()
InstancepublicTTableHeaderModelGetColumnModel()
InstancepublicTTableHeaderModelGetRowModel()
InstancepublicTTableCellsGetCells(Bounds: TInteger32Rectangle)Returns a rectangle of TTableCells for rows and columns indices specified by Bounds.
InstancepublicSetValueForCells(Bounds: TInteger32Rectangle; Value: TValue)
InstancepublicClearValuesForCells(Bounds: TInteger32Rectangle)
InstancepublicTTableCellsGetRows(Identifiers: TList<TTableHeaderIdentifier>)
InstancepublicTTableModelQueryResultRetrieve(Query: TTableModelQuery)
InstancepublicTBooleanSupportsRowSorting()
InstancepublicTTableModelCreateRowSortingTableModel()
InstancepublicTBooleanSupportsColumnSorting()
InstancepublicSortRows(Columns: TSortColumns)
InstancepublicTTableRowComparatorCreateRowComparator(Columns: TSortColumns)
InstancepublicTTableRowProjectorCreateRowProjector(Columns: array of TInteger32)
InstancepublicTBooleanSupportsRowFiltering()
InstancepublicTTableModelCreateRowFilteringTableModel()
InstancepublicFilterRows(Expression: TExpression)
InstancepublicTTableModelCreateRowGroupingTableModel(Grouping: TObject)
InstancepublicInsertTabDelimited(Lines: TList<TText>)
InstancepublicTEventGateGetEventGate()
InstancepublicTInteger32SizeGetSize()
InstancepublicRefresh()
InstancepublicSave()
InstancepublicTTableModelCopy()
InstancepublicTTableModelEmbellish()
InstancepublicTTableModelEmbellishedModel()