RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebContainedComponent Class

TWebContainedComponent is the base class for Web items that generate HTML on behalf of another component.

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

WebComp

Use TWebContainedComponent as a base class for Web items. 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. 

TWebContainedComponent implements the logic that fits a component into the hierarchy of Web items. TWebContainedComponent descendants act as leaf nodes in this hierarchy. That is, they do not have their own Web items that they use to generate HTML. 

In order to allow TWebComponentList to manage the Web item, TWebContainedComponent implements the IWebComponent interface. 

Do not create instances of TWebContainedComponent. TWebContainedComponent does not produce any HTML, but merely handles the relationship to a managing TWebComponentList object. 

 

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