RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterDefaultActions.SetDefaultWebComponents Method

Sets the list of Web items that are used by default if an application does not explicitly assign child items to this object.

Pascal
procedure SetDefaultWebComponents(AList: TWebComponentList); override;
C++
virtual __fastcall SetDefaultWebComponents(TWebComponentList AList);

GetDefaultWebComponents supplies the default set of child items for this component. As implemented in TAdapterSubComponent, GetDefaultWebComponents always returns nil (Delphi) or NULL (C++) because this class represents only a single list of items. Descendants that represent the default fields or actions of the associated adapter (TAdapterDefaultActions and TAdapterDefaultFields) override this method to return the list of default fields or actions. 

SetDefaultWebComponents assigns the default set of child items for this component. As implemented in TWebContainerComponent, SetDefaultWebComponents does nothing because this class represents only a single list of items. Descendants that represent the default fields or actions of the associated adapter (TAdapterDefaultActions and TAdapterDefaultFields) override this method to store the list of default fields or actions. 

 

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