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

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 5: Строка 5:
 
Delphi
 
Delphi
  
<code>TfgNativeControlFactory = class (TObject)</code>
+
<syntaxhighlight lang="Delphi">TfgNativeControlFactory = class (TObject)</syntaxhighlight>
 
 
== Описание ==
 
 
 
Фабрика по регистрации реализаций нативных контролов и созданию их.
 
 
 
== Конструкторы ==
 
 
 
{| class="wikitable sortable"
 
|}
 
 
 
== Методы ==
 
 
 
{| class="wikitable sortable"
 
|-
 
| <code>procedure</code> || <code>Register(const AControlClass: TClass, const APresentationAllocator: 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 '' .
 
|-
 
| <code>procedure</code> || <code>Register(const AControlClass: string, const APresentationAllocator: 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 '' .
 
|-
 
| <code>procedure</code> || <code>Unregister(const AControlClass: TClass)</code>
 
Unregisters specified presentation proxy class by control class.
 
|-
 
| <code>function</code> || <code>Supported(const AControlClass: TClass)</code>
 
Returns True if factory has presentation proxy with specified name. Returns False otherwise.
 
|-
 
| <code>function</code> || <code>Supported(const AControlClass: string)</code>
 
 
 
|-
 
| <code>function</code> || <code>CreatePresentation(const AControl: TComponent)</code>
 
Creates instance of presentation proxy by specified name and casts to specified type '' T '' .
 
|-
 
| <code>function</code> || <code>CreatePresentation(const AControlClass: string, const AControl: TComponent)</code>
 
 
 
|}
 
 
 
== Свойства ==
 
 
 
{| class="wikitable sortable"
 
|}
 

Версия 03:17, 10 июня 2019