FGX.NativeControl.Factory.TfgNativeControlFactory: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 14: Строка 14:
  
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 +
|}
 +
 +
== Методы ==
 +
 +
{| class="wikitable sortable"
 +
|-
 +
| procedure || Register(const AControlClass: TClass, const APresentationAllocator: TfgNativeControlAllocator)
 +
Tries to register presentation proxy class with specified name. If factory already has presentation proxy with the same name, it will rise exception '' EPresentationProxy '' .
 +
|-
 +
| procedure || Register(const AControlClass: string, const APresentationAllocator: TfgNativeControlAllocator)
 +
Tries to register presentation proxy class with specified name. If factory already has presentation proxy with the same name, it will rise exception '' EPresentationProxy '' .
 +
|-
 +
| procedure || Unregister(const AControlClass: TClass)
 +
Unregisters specified presentation proxy class by control class.
 +
|-
 +
| function || Supported(const AControlClass: TClass)
 +
Returns True if factory has presentation proxy with specified name. Returns False otherwise.
 +
|-
 +
| function || Supported(const AControlClass: string)
 +
 +
|-
 +
| function || CreatePresentation(const AControl: TComponent)
 +
Creates instance of presentation proxy by specified name and casts to specified type '' T '' .
 +
|-
 +
| function || CreatePresentation(const AControlClass: string, const AControl: TComponent)
 +
 
|}
 
|}

Версия 23:38, 9 июня 2019

Delphi

TfgNativeControlFactory = class (TObject)

Описание

Фабрика по регистрации реализаций нативных контролов и созданию их.

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

Методы

procedure Register(const AControlClass: TClass, const APresentationAllocator: TfgNativeControlAllocator)

Tries to register presentation proxy class with specified name. If factory already has presentation proxy with the same name, it will rise exception EPresentationProxy .

procedure Register(const AControlClass: string, const APresentationAllocator: TfgNativeControlAllocator)

Tries to register presentation proxy class with specified name. If factory already has presentation proxy with the same name, it will rise exception EPresentationProxy .

procedure Unregister(const AControlClass: TClass)

Unregisters specified presentation proxy class by control class.

function Supported(const AControlClass: TClass)

Returns True if factory has presentation proxy with specified name. Returns False otherwise.

function Supported(const AControlClass: string)
function CreatePresentation(const AControl: TComponent)

Creates instance of presentation proxy by specified name and casts to specified type T .

function CreatePresentation(const AControlClass: string, const AControl: TComponent)