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

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

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

Delphi

TfgNativeControlFactory = class (TObject)