| cadetill's blog | Copyright © Xavier Martínez (cadetill) |
Class TGMInterfacedCollection
Unit
Declaration
type TGMInterfacedCollection = class(TCollection, IGMControlChanges, IGMOwnerLang, IGMToStr)
Description
Base class for all classes that inherit from TCollection into GMLib.
Implements IGMControlChanges, IGMToStr and IGMOwnerLang interfaces.
Hierarchy
- TObject
- TPersistent
- TCollection
- TGMInterfacedCollection
Overview
Methods
![]() |
constructor Create(AOwner: TPersistent; ItemClass: TCollectionItemClass); virtual; |
![]() |
function GetOwner: TPersistent; override; |
![]() |
function GetOwnerLang: TGMLang; virtual; |
![]() |
function PropToString: string; virtual; |
![]() |
procedure Assign(Source: TPersistent); override; |
![]() |
procedure Clear; |
![]() |
procedure Delete(Index: Integer); |
![]() |
procedure Move(CurIndex, NewIndex: Integer); |
![]() |
procedure PropertyChanged(Prop: TPersistent; PropName: string); |
Properties
![]() |
property Items[I:Integer]: TGMInterfacedCollectionItem read GetItems write SetItems; |
![]() |
property OnChange: TNotifyEvent read FOnChange write FOnChange; |
Description
Methods
![]() |
function GetOwner: TPersistent; override; |
|
Function that return the object owner.
ReturnsOwner of object | |
![]() |
function GetOwnerLang: TGMLang; virtual; |
|
Returns the TGMLang of the Owner.
If Owner is not assigned or not supports IGMOwnerLang interface then should be returned
ReturnsTGMLang of the owner object. | |
![]() |
function PropToString: string; virtual; |
|
Converts all class properties values to a string separated by comma used to send values to a JavaScript function. Returnsstring with all properties. | |
![]() |
procedure Clear; |
|
Deletes all items from the collection. | |
![]() |
procedure Delete(Index: Integer); |
|
Deletes a single item from the collection.
Parameters
| |
![]() |
procedure Move(CurIndex, NewIndex: Integer); |
|
Moves an item to a new position into the collection.
Parameters
| |
Properties
![]() |
property Items[I:Integer]: TGMInterfacedCollectionItem read GetItems write SetItems; |
|
List of items from collection. | |
![]() |
property OnChange: TNotifyEvent read FOnChange write FOnChange; |
|
Event triggered when a property changes. | |
Generated by PasDoc 0.15.0.

