FMX.Controls.Model.TDataModel
Delphi
TDataModel = class(TMessageSender)
C++
class PASCALIMPLEMENTATION TDataModel : public Fmx::Presentation::Messages::TMessageSender
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| class | public | FMX.Controls.Model.pas FMX.Controls.Model.hpp |
FMX.Controls.Model | FMX.Controls.Model |
Description
A class that contains a dictionary of key-value pairs and may be used as a model by presented controls.
Keys are strings and values are instances of TValue.
When TDataModel reads or writes TDataModel.Data values the data model sends MM_GETDATA and MM_DATA_CHANGED messages to a presentation.
TDataModel extends TMessageSender, which provides the sending messages functionality. TDataModel adds the Data and DataSource properties that provide keeping and handling of arbitrary type data using the TValue type. This means that TDataModel can keep any our data does not creating a new separate class.