Sign in Join
FPDoc Onlineexperiment

TMediatorDef.Handles function

Member of TMediatorDefpublicIn unit fpObserver

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

Declaration

pascal
function Handles(ASubject: TObject; AGui: TComponent; 
 APropInfo: PPropInfo): Boolean

Arguments

ASubject

Subject object to check compatibility for

AGui

GUI component to check compatibility for

APropInfo

Property information for property-specific mediators

Function result

True if this definition handles the parameters

Description

The Handles method evaluates whether this mediator definition can handle the specified combination of subject object, GUI component, and property information. It checks class compatibility and property requirements.

This method is used by the mediator manager during the selection process to filter potentially suitable mediators.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.