TListeners

A collection of TBaseObject instances to which TEvent can be distributed.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TBaseObjectA base class for objects that can be used instead of TObject.
3TReferenceCountedObjectObject that keeps track of the number of times it is referenced from other objects
4TListeners

Source

Listeners.pas (31)

Fields

ScopeVisibilityTypeNameDescription
InstanceprotectedTList<TListenersRegistration>Registrations
InstanceprotectedTList<TListenersIterator>Iterators

Methods

ScopeVisibilityResultNameDescription
InstancepublicCreate()
InstancepublicDestroy()
InstancepublicAdd(Listener: TBaseObject)
InstancepublicRemove(Listener: TBaseObject)
InstancepublicDistributeEvent(Event: TEvent; FreeEvent: TBoolean)Call HandleEvent on all listeners in order of registration, optionally calling Free on the event.
InstancepublicDistributeEventInUserInterface(Event: TEvent; WaitType: TWaitType)Call HandleEvent on all listeners in the user interface thread, optionally waiting for all listeners to process the event.