RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebContainedContainerComponent Class

TWebContainedContainerComponent is the base class for Web items that generate HTML on behalf of another component and also use Web items to generate HTML.

Pascal
TWebContainedContainerComponent = class(TComponent, IGetWebComponentList, IWebComponent);
C++
class TWebContainedContainerComponent : public TComponent, public IGetWebComponentList, public IWebComponent;

WebComp

Use TWebContainedContainerComponent as a base class for Web items that have their own subitems. Web items are items that generate HTML statements on behalf of another component. The component that uses the generated HTML has a property whose type is a TWebComponentList object that lists a set of its Web items. In addition, the TWebContainedContainerComponent descendant uses a TWebComponentList object to store a set of Web items that it uses. 

TWebContainedContainerComponent implements the logic that fits a component into the hierarchy of Web items. TWebContainedContainerComponent descendants act as internal nodes in this hierarchy. That is, they have both a Web parent and a set of child Web items. 

In order to allow the parent's TWebComponentList object to manage this Web item, TWebContainedContainerComponent implements the IWebComponent interface. 

Do not create instances of TWebContainedContainerComponent. TWebContainedContainerComponent does not produce any HTML, but merely handles the relationships to parent and child TWebComponentList objects. 

 

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