RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IValuesListAdapter Interface

IValuesListAdapter is the interface for supplying name/value pairs.

Pascal
IValuesListAdapter = interface;
C++
__interface IValuesListAdapter;

SiteComp

Values list adapters such as TStringsValuesList and TDataSetValuesList implement the IValuesListAdapter interface. This allows adapter fields to use the values list adapter for supplying an associated list of name/value pairs. Typically, this list is used to enumerate the possible values for the adapter field so that they can be added to a selection control such as a list box in an HTML form. 

The IValuesListAdapter interface introduces methods to read the current name or value, and to look up the name (or image) associated with a specified value. If the adapter that implements IValuesListAdapter does not also support iteration, server-side script can't change the current name/value pair. However, it can still look up the name or image for a specified value.

Note: In C++, method declarations that use IValuesListAdapter use the _di_IValuesListAdapter type instead. This type is a DelphiInterface wrapper around the IValuesListAdapter interface:
Note: typedef System::DelphiInterface< IValuesListAdapter > _di_IValuesListAdapter;
 

 

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