Unit 'fpobserver' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

TObservedHook.AddItem

Notifies observers that an item was added

Declaration

Source position: fpobserver.pp line 44

public procedure TObservedHook.AddItem(

  AItem: TObject

);

Arguments

AItem

  

Item that was added

Description

The AddItem method sends an item addition notification to all observers using the ooAddItem operation. The added item is passed as the data parameter.

This notification is typically used by collection-like objects to inform observers when new items are added to the collection.

See also

DeleteItem

  

Notifies observers that an item was deleted

Changed

  

Notifies all observers that the object has changed

CustomNotify

  

Sends custom notification to all observers

FPONotifyObservers

  

Core method to notify all observers about operations


Documentation generated on: Dec 15 2025