Class TDataListCollection

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TDataListCollection = class(TPhastCollection)

Description

TDataListCollection is a collection of TCustomDataListItem's. It is used to store data by zones in a TMultiValueScreenObject.

Normally, only the descendants of TDataListCollection are created.

Hierarchy

Overview

Fields

Private FScreenObject: TScreenObject;
Private PriorIndex: integer;

Methods

Public constructor Create(ItemClass: TCollectionItemClass; const ScreenObject: TScreenObject; Model: TBaseModel);
Public function GetItemByName(ADataSetName: string): TCustomDataListItem;

Properties

Public property ScreenObject: TScreenObject read FScreenObject;

Description

Fields

Private FScreenObject: TScreenObject;

FScreenObject is the TScreenObject with which the data is associated.

Private PriorIndex: integer;

PriorIndex is used to store the result of GetItemByName. Often, the next time GetItemByName is called, it will be with the same name so storing the result can speed things up.

Methods

Public constructor Create(ItemClass: TCollectionItemClass; const ScreenObject: TScreenObject; Model: TBaseModel);

Create creates and instance of TDataListCollection.

Public function GetItemByName(ADataSetName: string): TCustomDataListItem;

GetItemByName returns the TCustomDataListItem whose name matches ADataSetName.

Properties

Public property ScreenObject: TScreenObject read FScreenObject;

ScreenObject is the TScreenObject with which the data is associated.


Generated by PasDoc 0.12.1 on 2013-05-13 15:42:03