Finds the best mediator definition for given parameters
Source position: fpobserver.pp line 374
public function TMediatorManager.FindDefFor( |
ASubject: TObject; |
AGui: TComponent |
):TMediatorDef; overload; |
ASubject: TObject; |
AGui: TComponent; |
const APropName: string |
):TMediatorDef; overload; |
ASubject: TObject; |
AGui: TComponent; |
APropInfo: PPropInfo |
):TMediatorDef; overload; |
ASubject |
|
Subject object for mediator matching |
AGui |
|
GUI component for mediator matching |
Best matching mediator definition or Nil
ASubject |
|
Subject object for mediator matching |
AGui |
|
GUI component for mediator matching |
APropName |
|
Property name for property-specific matching |
ASubject |
|
Subject object for mediator matching |
AGui |
|
GUI component for mediator matching |
APropInfo |
|
Property information for detailed matching |
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.
|
Registers a new mediator class with the manager |