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

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

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

Delphi

TfgNativeControlFactory = class (TObject)