RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterActions.AdapterCanAddClass Method

Indicates whether the associated adapter supports a specified class of action component.

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

TAdapterActions uses this method internally as part of its implementation for the CanAddClass method. This allows the TAdapterActions object to indicate, at design time, which types of action components are valid as components in the WebActions property list. 

AParent is the instance of TAdapterActions to which the child actions are to be added. 

AClass describes the class of the child component to be added to AParent. 

AdapterCanAddClass returns true if the adapter recognizes and supports AClass as a child action, false otherwise. 

AdapterCanAddClass calls the CanAddActionClass method of its associated adapter to determine whether it accepts the specified action class. 

 

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