TMediatorManager.FindDefFor¶
Finds the best mediator definition for given parameters
Declaration¶
Source position: fpobserver.pp line 374
public
function FindDefFor(ASubject: TObject; AGui: TComponent) : TMediatorDef
; overload; overload;
function FindDefFor(ASubject: TObject; AGui: TComponent;
const APropName: string) : TMediatorDef; overload; overload;
function FindDefFor(ASubject: TObject; AGui: TComponent;
APropInfo: PPropInfo) : TMediatorDef; overload; overload;
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¶
| Name | Description |
|---|---|
| RegisterMediator | Registers a new mediator class with the manager |