RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterActions.ImplCanAddClass Method

Provides the underlying implementation for the CanAddClass method.

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

The CanAddClass method calls ImplCanAddClass to determine whether an object of a specified type can be added to this collection. 

AParent is the TAdapterActions object to which the Web item will be added. 

AClass is the class of the proposed child item. 

ImplCanAddClass returns true if the TAdapterActions object can include a child of type AClass, false otherwise. 

ImplCanAddClass returns true if one of the following two conditions is met: 

AClass is an adapter action class that the associated adapter recognizes and accepts. 

AClass is a custom adapter action (a descendant of TCustomAdapterAction that is not a descendant of TImplementedAdapterAction). 

 

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