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

TMediatorDef

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

Definition for registering mediators with the mediator manager

Declaration

Source position: fpobserver.pp line 337

type TMediatorDef = class(TCollectionItem)

public

  function Handles();

  

Determines if this definition can handle the given subject/GUI combination

  function BetterMatch();

  

Compares this definition against another for best match selection

  property MediatorClass: TMediatorClass; [rw]

  

Class reference for the mediator implementation

  property MinSubjectClass: TClass; [rw]

  

Minimum subject class that this mediator can handle

  property PropertyTypes: TTypeKinds; [rw]

  

Set of property types this mediator can handle

  property PropertyName: string; [rw]

  

Specific property name this mediator handles

end;

Inheritance

TMediatorDef

  

Definition for registering mediators with the mediator manager

|

TCollectionItem

|

TPersistent

|

TObject,IFPObserved

Description

The TMediatorDef class represents a mediator definition used by the mediator manager to automatically select appropriate mediator classes for given subject/GUI combinations.

Each definition specifies the mediator class, minimum subject class, and either specific property names or property types that the mediator can handle. The manager uses this information to find the best matching mediator for automatic mediation scenarios.

See also

Handles

  

Determines if this definition can handle the given subject/GUI combination


Documentation generated on: Dec 15 2025