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

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 8: Строка 8:
  
 
Фабрика по регистрации реализаций нативных контролов и созданию их.
 
Фабрика по регистрации реализаций нативных контролов и созданию их.
 +
 +
== Методы ==
 +
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">class procedure</syntaxhighlight> || <code lang="Delphi">Register(const AControlClass: [[TClass]]; const APresentationAllocator: [[.TfgNativeControlAllocator|TfgNativeControlAllocator]])</code>
 +
Tries to register presentation proxy class with specified name. If factory already has presentation proxy with the same name, it will rise exception '' EPresentationProxy '' .
 +
|-
 +
| <syntaxhighlight lang="Delphi">class procedure</syntaxhighlight> || <code lang="Delphi">Register(const AControlClass: [[string]]; const APresentationAllocator: [[.TfgNativeControlAllocator|TfgNativeControlAllocator]])</code>
 +
Tries to register presentation proxy class with specified name. If factory already has presentation proxy with the same name, it will rise exception '' EPresentationProxy '' .
 +
|-
 +
| <syntaxhighlight lang="Delphi">class procedure</syntaxhighlight> || <code lang="Delphi">Unregister(const AControlClass: [[TClass]])</code>
 +
Unregisters specified presentation proxy class by control class.
 +
|-
 +
| <syntaxhighlight lang="Delphi">class function</syntaxhighlight> || <code lang="Delphi">Supported(const AControlClass: [[TClass]]): [[Boolean]]</code>
 +
Returns True if factory has presentation proxy with specified name. Returns False otherwise.
 +
|-
 +
| <syntaxhighlight lang="Delphi">class function</syntaxhighlight> || <code lang="Delphi">Supported(const AControlClass: [[string]]): [[Boolean]]</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|-
 +
| <syntaxhighlight lang="Delphi">class function</syntaxhighlight> || <code lang="Delphi">CreatePresentation(const AControl: [[TComponent]]): [[FGX.NativeControl.Factory.TfgNativeControlHandle|TfgNativeControlHandle]]</code>
 +
Creates instance of presentation proxy by specified name and casts to specified type '' T '' .
 +
|-
 +
| <syntaxhighlight lang="Delphi">class function</syntaxhighlight> || <code lang="Delphi">CreatePresentation(const AControlClass: [[string]]; const AControl: [[TComponent]]): [[FGX.NativeControl.Factory.TfgNativeControlHandle|TfgNativeControlHandle]]</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|}

Версия 23:30, 11 июня 2019

Delphi

TfgNativeControlFactory = class (TObject)

Описание

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

Методы

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

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

class procedure
Unregister(const AControlClass: TClass)

Unregisters specified presentation proxy class by control class.

class function
Supported(const AControlClass: TClass): Boolean

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

class function
Supported(const AControlClass: string): Boolean

Описание отсутствует.

class function
CreatePresentation(const AControl: TComponent): TfgNativeControlHandle

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

class function
CreatePresentation(const AControlClass: string; const AControl: TComponent): TfgNativeControlHandle

Описание отсутствует.