Skip to content

TMediatorDef.Handles

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

Declaration

Source position: fpobserver.pp line 345

public 
function TMediatorDef.Handles(ASubject: TObject; AGui: TComponent; 
                             APropInfo: PPropInfo) : Boolean;

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

Name Description
TMediatorDef.BetterMatch Compares this definition against another for best match selection