RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterField Class

TAdapterField is an event handler based adapter field that provides a single value.

Pascal
TAdapterField = class(TCustomAdapterField);
C++
class TAdapterField : public TCustomAdapterField;

WebAdapt

TAdapterField publishes the properties in TCustomAdapterField. TCustomAdapterField calls event handlers to retrieve the adapter field's value, validate a value entered by the end-user, and update the adapter field's value. 

Add TAdapterField to TAdapter or other adapter components types when you need an adapter field that supports a single value using event handlers. Event handlers are used to provide the adapter field value(s), validate a value entered by the end-user, and update the adapter field with a value entered by the end-user. 

There are other adapter field components that use event handlers. They differ in the type and number of values that are supported. For example, TAdapterMultiValue field is used when the end-user can enter multiple values using a group of check boxes or a multiple selection select list. TAdapterFileField, TAdapterMemoField, TAdapterBooleanField and TAdapterImageField are other event driven adapter fields. 

 

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