FGX.CollectionView.TfgItemWrapper: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 15: Строка 15:
 
| <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create(const AItem: [[FGX.Control.TfgControl|TfgControl]]; const AData: [[.IFGXItemDataAccessor|IFGXItemDataAccessor]])</code>
 
| <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create(const AItem: [[FGX.Control.TfgControl|TfgControl]]; const AData: [[.IFGXItemDataAccessor|IFGXItemDataAccessor]])</code>
  
 +
|}
 +
 +
== Методы ==
 +
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">GetControlByLookupName(const ALookupName: [[string]]): [[T]]</code>
 +
Доступ к конкретному вложенному контролу элемента по имени '' TfgControl.LookupName '' с приведением к указанному классу '' T '' .
 +
|-
 +
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">GetControlByName(const AName: [[string]]): [[T]]</code>
 +
Доступ к конкретному вложенному контролу элемента по имени '' TfgControl.Name '' с приведением к указанному классу '' T '' .
 
|}
 
|}

Версия 04:47, 10 июня 2019

Delphi

TfgItemWrapper = class (TObject)

Описание

Обертка для доступа к контролам одного элемента коллекции. Обеспечивает вспомогательные методы для быстрого поиска вложенных контролов по имени TfgControl.LookupName с кешированием.

Конструкторы

constructor
Create(const AItem: TfgControl; const AData: IFGXItemDataAccessor)

Методы

function
GetControlByLookupName(const ALookupName: string): T

Доступ к конкретному вложенному контролу элемента по имени TfgControl.LookupName с приведением к указанному классу T .

function
GetControlByName(const AName: string): T

Доступ к конкретному вложенному контролу элемента по имени TfgControl.Name с приведением к указанному классу T .