Skip to content

TListItemMediator

Mediator for individual items within list mediators

Declaration

Source position: fpobserver.pp line 173

type

  TListItemMediator = class(TObject, IFPObserver)
  public
    destructor Destroy;
    procedure MaybeObjectToView;
    property OnBeforeSetupField: TOnBeforeSetupField; {rw}
    property Subject: TObject; {rw}
    property Active: Boolean; {r}
  end;

Inheritance

Implements: IFPObserver

Description

The TListItemMediator class handles individual objects within list mediators. Each item in a list gets its own item mediator that manages the observer relationship and data synchronization for that specific object.

Item mediators are created and managed automatically by their parent list mediator and coordinate with it for activation state and field formatting events.

Properties

Member Visibility Description
Active read only public Indicates if the parent list mediator is active
Subject public Individual object being mediated by this item mediator
See all Properties

Methods

Member Visibility Description
Destroy public Destroys the list item mediator and detaches from subject
MaybeObjectToView public Conditionally updates view with data from subject
See all Methods

Events

Member Visibility Description
OnBeforeSetupField public Event for formatting field values before display
See all Events

See also

Name Description
TBaseListMediator Base mediator for handling lists of observable objects