FGX.NativeControl.Factory.TfgNativeControlFactory: различия между версиями
Перейти к навигации
Перейти к поиску
Admin (обсуждение | вклад) (summary) |
Admin (обсуждение | вклад) (summary) |
||
(не показаны 3 промежуточные версии этого же участника) | |||
Строка 11: | Строка 11: | ||
<p>Фабрика по регистрации реализаций нативных контролов и созданию их.</p> | <p>Фабрика по регистрации реализаций нативных контролов и созданию их.</p> | ||
− | |||
== Методы == | == Методы == | ||
Текущая версия на 02:51, 1 июля 2019
Delphi
TfgNativeControlFactory = class (TObject)
TObject -> TfgNativeControlFactory
Описание
Фабрика по регистрации реализаций нативных контролов и созданию их.
Методы
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 . If factory doesn't have specified presentation proxy, it will rise EPresentationProxy exception. If type T is not compatible with found presentation proxy class, It will return nil.
|
class function
|
CreatePresentation(const AControlClass: string; const AControl: TComponent): TfgNativeControlHandle
Описание отсутствует. |