Unit 'fpobserver' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

TComponentMediator

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

General-purpose mediator for any TComponent-based view

Declaration

Source position: fpobserver.pp line 153

type TComponentMediator = class(TBaseMediator)

published

  property ViewComponent: TComponent; [rw]

  

Component serving as the view in the mediation

  property ViewPropertyName: string;

  

Name of property in view component to mediate

end;

Inheritance

TComponentMediator

  

General-purpose mediator for any TComponent-based view

|

TBaseMediator

  

Base class for mediating data between model and view objects

|

TComponent,IFPObserver

|

TPersistent,IUnknown,IInterfaceComponentReference

|

TObject,IFPObserved

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

See also

TBaseMediator

  

Base class for mediating data between model and view objects


Documentation generated on: Dec 15 2025