Declaration¶
Source position: fpobserver.pp line 337
type
TMediatorDef = class(TCollectionItem)
public
function Handles : Boolean;
function BetterMatch : Boolean;
property MediatorClass: TMediatorClass; {rw}
property MinSubjectClass: TClass; {rw}
property PropertyTypes: TTypeKinds; {rw}
property PropertyName: string; {rw}
end;
Inheritance¶
Description¶
The TMediatorDef class represents a mediator definition used by the mediator manager to automatically select appropriate mediator classes for given subject/GUI combinations.
Each definition specifies the mediator class, minimum subject class, and either specific property names or property types that the mediator can handle. The manager uses this information to find the best matching mediator for automatic mediation scenarios.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| MediatorClass | public | Class reference for the mediator implementation |
| MinSubjectClass | public | Minimum subject class that this mediator can handle |
| PropertyName | public | Specific property name this mediator handles |
| PropertyTypes | public | Set of property types this mediator can handle |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| BetterMatch | public | Compares this definition against another for best match selection |
| Handles | public | Determines if this definition can handle the given subject/GUI combination |