TMediatorManager.FindDefFor function
Finds the best mediator definition for given parameters
Declaration
function FindDefFor(ASubject: TObject; AGui: TComponent): TMediatorDef
; overload
function FindDefFor(ASubject: TObject; AGui: TComponent;
const APropName: string): TMediatorDef; overload
function FindDefFor(ASubject: TObject; AGui: TComponent;
APropInfo: PPropInfo): TMediatorDef; overloadArguments
ASubject | Subject object for mediator matching |
AGui | GUI component for mediator matching |
APropName | Property name for property-specific matching |
APropInfo | Property information for detailed matching |
Function result
Best matching mediator definition or Nil
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
