Skip to content

TComponentMediator

General-purpose mediator for any TComponent-based view

Declaration

Source position: fpobserver.pp line 153

type

  TComponentMediator = class(TBaseMediator)
  published
    property ViewComponent: TComponent; {rw}
    property ViewPropertyName;
  end;

Description

The TComponentMediator class provides mediation capabilities for any TComponent-based view. It extends TBaseMediator to work with components that can be set at design time or runtime.

This mediator is useful for creating flexible data binding scenarios where the specific view component type is not known at compile time, or when working with various types of input controls. You can also create descendants from this class which introduce more specific behaviour

Properties

Member Visibility Description
ViewComponent published Component serving as the view in the mediation
ViewPropertyName read only published Name of property in view component to mediate
See all Properties

See also

Name Description
TBaseMediator Base class for mediating data between model and view objects