TListeners
A collection of
TBaseObject
instances to which TEvent
can be distributed.Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TBaseObject | A base class for objects that can be used instead of TObject . |
3 | TReferenceCountedObject | Object that keeps track of the number of times it is referenced from other objects |
4 | TListeners |
Source
Listeners.pas (31)
Fields
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | protected | TList<TListenersRegistration> | Registrations | |
Instance | protected | TList<TListenersIterator> | Iterators |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | public | Create() | ||
Instance | public | Destroy() | ||
Instance | public | Add(Listener: TBaseObject) | ||
Instance | public | Remove(Listener: TBaseObject) | ||
Instance | public | DistributeEvent(Event: TEvent; FreeEvent: TBoolean) | Call HandleEvent on all listeners in order of registration, optionally calling Free on the event. | |
Instance | public | DistributeEventInUserInterface(Event: TEvent; WaitType: TWaitType) | Call HandleEvent on all listeners in the user interface thread, optionally waiting for all listeners to process the event. |