Class TChildObjList

Unit

Declaration

type TChildObjList<T:class> = class(TObject)

Description

Base wrapper for list of map's child objects (mapmarks, tracks). List is linked to map and controls redrawing when an item is added or removed. List owns added objects and disposes them on delete.

Hierarchy

Overview

Methods

Public constructor Create(Map: TMapControl);
Public destructor Destroy; override;
Public procedure BeginUpdate;
Public procedure EndUpdate;
Public function GetEnumerator: TObjectList<T>.TEnumerator; inline;
Public function Get(Index: Integer): T; inline;
Public function Add(Item: T): T;
Public procedure Delete(Ind: Integer); overload;
Public procedure Delete(Item: T); overload;
Public procedure Sort;
Public function Count: Integer; inline;
Public procedure Clear;

Properties

Public property OnItemNotify: TOnItemNotify<T> read FOnItemNotify write FOnItemNotify;
Public property Items[Index: Integer]: T read Get;

Description

Methods

Public constructor Create(Map: TMapControl);

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public procedure BeginUpdate;

This item has no description.

Public procedure EndUpdate;

This item has no description.

Public function GetEnumerator: TObjectList<T>.TEnumerator; inline;

This item has no description.

Public function Get(Index: Integer): T; inline;

This item has no description.

Public function Add(Item: T): T;

Add an item

Public procedure Delete(Ind: Integer); overload;

Remove item by index

Public procedure Delete(Item: T); overload;

Remove given item

Public procedure Sort;

Re-sort the list after modification of items' properties

Public function Count: Integer; inline;

Return count of elements in list

Public procedure Clear;

Remove all elements

Properties

Public property OnItemNotify: TOnItemNotify<T> read FOnItemNotify write FOnItemNotify;

Assigning a handler for this event allows implementing custom init, disposal of allocated memory and so on

Public property Items[Index: Integer]: T read Get;

This item has no description.


Generated by PasDoc 0.16.0.