RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterPageProducer Class

TCustomAdapterPageProducer generates the proper HTML and JavaScript needed to display adapter fields and execute adapter actions.

Pascal
TCustomAdapterPageProducer = class(TBaseAdapterPageProducer, IWebContent);
C++
class TCustomAdapterPageProducer : public TBaseAdapterPageProducer, public IWebContent;

TCustomAdapterPageProducer creates an HTML page using content it obtains from a hierarchy of components called Web items. The Web items that appear in the TCustomAdapterPageProducer's hierarchy use Adapter components to fetch the information that they display. 

Use TCustomAdapterPageProducer as a base class for page producer components that assemble their content from Web items that use Adapter components. 

TCustomAdapterPageProducer introduces two properties, HTMLDoc and HTMLFile, each of which can specify a template that the page producer uses to generate its content. By default, this template is set to include the following special tags: 

<#STYLES> - This tag is replaced by the stylesheet defined by the Styles or StylesFile property. 

<#WARNINGS> - This tag is replaced with design time warnings that indicate possible problems with the hierarchy of web items. 

<#SERVERSCRIPT> - This tag is replaced with generated HTML/JavaScript based on the hierarchy of Web items. TCustomAdapterPageProducer will not generate any content if this tag is missing. 

Applications can alter the template to further embellish the content that the page producer generates. 

 

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