RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.ImplCanAddActionClass Method

Provides the underlying implementation for the CanAddActionClass method.

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

The CanAddActionClass method calls ImplCanAddActionClass to determine whether a specified class of adapter action can be added as a child to an adapter of this type. 

AParent is a dataset adapter to which a child action may be added. It must be a descendant of TCustomDataSetAdapter

AClass is the class of an adapter action component that may be added to AParent. 

ImplCanAddActionClass returns true if an action of type AClass can be added to AParent, false if AClass is not a valid action class for AParent. 

In TCustomDataSetAdapter, ImplCanAddActionClass returns true if AClass descends from TCustomPagedAdapterAction or TCustomDataSetAdapterAction. These are the classes that the AddDefaultActions method returns. For a complete list of action classes, see the topic for AddDefaultActions

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!