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

# Class TGMInterfacedCollectionItem

Description
Hierarchy
Fields
Methods
Properties

## Unit

GMLib.Classes

## 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

- TObject
- TPersistent
- TCollectionItem
- TGMInterfacedCollectionItem

## Overview

### Methods

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

### Properties

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

## Description

### Methods

| `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

| `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.

| `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.

| `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

| `property APIUrl: string read GetAPIUrl;`
URL to Google Maps API page.

| `property FObject: TObject read FFObject write FFObject;`
Represents an object that is associated with the item.

| `property Name: string read FName write FName;`
Name to display into the TCollectionItemList.

| `property OnChange: TNotifyEvent read FOnChange write FOnChange;`
Event triggered when a property changes.

| `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.