Show: Delphi C++
Display Preferences

WebAdapt.TAdapter

From XE2 API Documentation
Jump to: navigation, search

WebAdapt.TCustomAdapterSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObject
TAdapter

Delphi

TAdapter = class(TCustomAdapter)

C++

class PASCALIMPLEMENTATION TAdapter : public TCustomAdapter

Properties

Type Visibility Source Unit Parent
class public
WebAdapt.pas
WebAdapt.hpp
WebAdapt WebAdapt

Description

TAdapter defines a scriptable interface to event handlers that return data items or execute commands in your application.

Use TAdapter to define a custom interface to application logic. Adapters contain field components and action components that represent data items and commands, respectively. Server-side script statements access the value of Adapter fields and the parameters of Adapter actions in order to build HTML forms and tables. Server-side script can be written by hand or automatically generated by the TAdapterPageProducer component. When an HTML form containing Adapter commands is submitted, the TAdapterDispatcher may automatically call an Adapter action component to execute the command. When an HTTP request for an adapter image field is received the TAdapterDispatcher may automatically call an Adapter field to retrieve the image.

For each field component added to TAdapter, you must implement an event handler to retrieve the data. For each action component added to TAdapter, you must implement an event handler to execute the command. Other adapter components, such as TDataSetAdapter and TLoginFormAdapter, have built in fields and actions that do not require events.

See Also

Personal tools
Previous Versions
Translations