RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractFieldValuesAdapter.ImplCanAddFieldClass Method

Provides the underlying implementation for the CanAddFieldClass method.

Pascal
function ImplCanAddFieldClass(AParent: TComponent; AClass: TClass): Boolean; override;
C++
virtual __fastcall Boolean ImplCanAddFieldClass(TComponent * AParent, TClass AClass);

The CanAddFieldClass method calls ImplCanAddFieldClass to determine whether this adapter can include a field that is an instance of a specified class. This allows the adapter editor to indicate the available fields at design time. 

AParent is an instance of this adapter class to which the field is to be added. 

AClass is the class of the object that represents the adapter field. 

ImplCanAddFieldClass returns true if AClass is the same as (or a descendant of) the class that the GetValueFieldClass method returns, indicating that this is the only child field this adapter supports. It returns false for any other class. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!