Sign in Join
FPDoc Onlineexperiment

TMediatorDef class

In unit fpObserver

Definition for registering mediators with the mediator manager

Declaration

pascal
TMediatorDef = class(TCollectionItem)

Inheritance

  1. TMediatorDef
  2. TCollectionItem
  3. TPersistent
  4. TObject

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.

See also

Properties

MediatorClasspublicClass reference for the mediator implementation
MinSubjectClasspublicMinimum subject class that this mediator can handle
PropertyTypespublicSet of property types this mediator can handle
PropertyNamepublicSpecific property name this mediator handles

Methods

HandlespublicDetermines if this definition can handle the given subject/GUI combination
BetterMatchpublicCompares this definition against another for best match selection

Inherited

From TCollectionItem (13)

Changed Collection Create Destroy DisplayName GetDisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (6)

Assign AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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