TTMSFNCTimelineAdapter Class
Abstract base class for timeline data adapters; subclass to supply indicator and section items from an external data source such as a database.
API unit family: TMSFNCTimeline
Inherits from: TTMSFNCCustomComponent
Syntax
TTMSFNCTimelineAdapter = class(TTMSFNCCustomComponent)
Properties
| Name | Description |
|---|---|
| Active | When True, the adapter is connected and supplies items to the timeline; when False, the adapter is inactive and the timeline uses its own Indicators and Sections collections. |
| Timeline | The timeline control this adapter supplies data to. |
Methods
| Name | Description |
|---|---|
| AfterUpdateItem | Called after an indicator update is complete; override for post-save processing. |
| DeleteItem | Called when an indicator is deleted; override to remove the corresponding record from the data source. |
| GetItems | Called by the timeline to request items for the given date range; override to fetch indicators and sections from the data source. |
| InsertItem | Called when a new indicator is inserted; override to add the corresponding record to the data source. |
| LoadItems | Loads all items from the data source into the timeline. |
| SelectItem | Called when an indicator is selected; override to react to selection in the data source. |
| UpdateItem | Called when an indicator is modified; override to persist the changes to the data source. |
| UpdateItems | Refreshes all items in the timeline from the data source. |