Event Model Article Index for
Event
Website Links For
Event
 

Information About

Event Model





DELEGATE EVENT MODEL


This model is based on three entities:
  • a control, which is the Event Source

  • some Consumers , also called Listeners , that receives the events from the source.

  • some Interfaces (in the broader meaning of the term), that describe the Protocol by which every event as to be communicated.


Furtermore the model requires that:
  • every listener must implement the interface for the Event it wants to listen to (done at programming time)

  • every listener must register to the source, to declare is will to listent some particular events (done at runtime)

  • every time that the source generates an event, it communicates it to the registered lsteners, following the protocol of the interface