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

TMediatorManager.FindDefFor

Finds the best mediator definition for given parameters

Declaration

Source position: fpobserver.pp line 374

public function TMediatorManager.FindDefFor(

  ASubject: TObject;

  AGui: TComponent

):TMediatorDef; overload;

function TMediatorManager.FindDefFor(

  ASubject: TObject;

  AGui: TComponent;

  const APropName: string

):TMediatorDef; overload;

function TMediatorManager.FindDefFor(

  ASubject: TObject;

  AGui: TComponent;

  APropInfo: PPropInfo

):TMediatorDef; overload;

Arguments

ASubject

  

Subject object for mediator matching

AGui

  

GUI component for mediator matching

Function result

Best matching mediator definition or Nil

Arguments

ASubject

  

Subject object for mediator matching

AGui

  

GUI component for mediator matching

APropName

  

Property name for property-specific matching

Arguments

ASubject

  

Subject object for mediator matching

AGui

  

GUI component for mediator matching

APropInfo

  

Property information for detailed matching

Description

The FindDefFor method searches through all registered mediator definitions to find the best match for the specified combination of subject object, GUI component, and optional property information.

The method evaluates each definition's compatibility and uses the BetterMatch comparison to select the most appropriate mediator. Multiple overloads support different search criteria including property names and property information.

See also

RegisterMediator

  

Registers a new mediator class with the manager


Documentation generated on: Dec 15 2025