RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPageItemsProducer Class

TPageItemsProducer maintains a list of Web item components for producing a string of HTML commands based on an input template.

Pascal
TPageItemsProducer = class(TBasePageItemsProducer);
C++
class TPageItemsProducer : public TBasePageItemsProducer;

PagItems

Use TPageItemsProducer as the base class for components that convert an HTML template that includes content generated by other components into a string of HTML commands that can be interpreted by a client application such as a Web browser. HTML templates include HTML commands and HTML-transparent tags that are replaced with customized content by the page items producer in an OnHTMLTag event handler. 

Page item producers differ from other page producer components in that they replace special HTML-transparent tags of the format

<#COMPONENT Name=WebContentComponent>

with the HTML produced by the component named WebContentComponent. WebContentComponent must have the same Owner as the page item producer and support the IWebContent interface, which the page item producer uses to obtain the replacement HTML for the COMPONENT tag. 

TPageItemsProducer introduces the WebPageItems property to maintain a hierarchical list of these Web content components, where each component produces content for its parent component. 

 

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