cadetill's blog Copyright © Xavier Martínez (cadetill)

Class TGMInterfacedCollectionItem

Unit

Declaration

type TGMInterfacedCollectionItem = class(TCollectionItem, IGMToStr, IGMOwnerLang, IGMAPIUrl)

Description

Base class for all classes that inherit from TCollectionItem into GMLib.

Implements IGMAPIUrl, IGMOwnerLang and (IGMAPIUrl interfaces.

Hierarchy

Overview

Methods

Protected function GetDisplayName: string; override;
Protected function GetOwnerLang: TGMLang; virtual;
Protected function PropToString: string; virtual;
Public procedure Assign(Source: TPersistent); override;

Properties

Public property APIUrl: string read GetAPIUrl;
Public property FObject: TObject read FFObject write FFObject;
Published property Name: string read FName write FName;
Protected property OnChange: TNotifyEvent read FOnChange write FOnChange;
Published property Tag: Integer read FTag write FTag default 0;

Description

Methods

Protected function GetDisplayName: string; override;

Returns the name of the collection item as it appears in the collection editor. See Delphi documentation for more details.

Returns

String with the name

Protected function GetOwnerLang: TGMLang; virtual;

Returns the TGMLang of the Owner.

If Owner is not assigned or not supports IGMOwnerLang interface then should be returned lnEnglish.

Returns

TGMLang of the owner object.

Protected function PropToString: string; virtual;

Converts all class properties values to a string separated by comma used to send values to a JavaScript function.

Returns

string with all properties.

Public procedure Assign(Source: TPersistent); override;

Call Assign to copy the properties or other attributes form an object to another.

The standard form of a call to Assign method is
     Destination.Assign(Source);
which tells the Destination object to copy the contents of the Source object to itself.

Parameters
Source
Object to copy the content.

Properties

Public property APIUrl: string read GetAPIUrl;

URL to Google Maps API page.

Public property FObject: TObject read FFObject write FFObject;

Represents an object that is associated with the item.

Published property Name: string read FName write FName;

Name to display into the TCollectionItemList.

Protected property OnChange: TNotifyEvent read FOnChange write FOnChange;

Event triggered when a property changes.

Published property Tag: Integer read FTag write FTag default 0;

Tag property has no predefined meaning. It can store any additional integer value for the convenience of developers.


Generated by PasDoc 0.15.0.