Event model

Event model

The event model is a programming paradigm commonly used in building graphical user interfaces. A very common and very "programmer-friendly" variant is the "delegate event model", which is provided by the most popular graphic frameworks.

Delegate event model

This model is based on three entities:
* a control, which is the event source
* consumers, also called listeners, that receive the events from the source
* interfaces (in the broader meaning of the term) that describe the protocol by which every event is to be communicated

Furthermore the model requires that:
* every listener must implement the interface for the event it wants to listen to
* every listener must register with the source, to declare its desire to listen to some particular event
* every time the source generates an event, it communicates it to the registered listeners, following the protocol of the interface


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Model-view-controller — (MVC) is an architectural pattern used in software engineering. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the …   Wikipedia

  • Event (computing) — In computing an event is an action that is usually initiated outside the scope of a program and that is handled by a piece of code inside the program. Typically events are handled synchronous with the program flow, that is, the program has one or …   Wikipedia

  • Model warship combat — VNS Verdun takes a shot at USS Nathaniel Greene at the 2007 North American Big Gun Open [1] event Model warship combat is an international club activity, in which participants construct radio controlled scale models of actual …   Wikipedia

  • Model-based testing — is the application of Model based design for designing and optionally executing the necessary artifacts to perform software testing. Models can be used to represent the desired behavior of the System Under Test (SUT), or to represent the desired… …   Wikipedia

  • Model European Union — Type NGO Simulation Purpose/focus Education Location Strasbourg, France …   Wikipedia

  • Event generator — Event generators are software libraries that generate simulated high energy particle physics events [ [http://arjournals.annualreviews.org/doi/abs/10.1146/annurev.nucl.55.090704.151505 M. L. Mangano T. J. Stelzer, Ann. Rev. Nucl. Part. Sci. 55,… …   Wikipedia

  • Model–view–presenter — (MVP) is a derivative of the model–view–controller (MVC) software pattern, also used mostly for building user interfaces. In MVP the presenter assumes the functionality of the middle man (played by the controller in MVC). Additionally, the view… …   Wikipedia

  • Model-centered instruction — is a general theory of instructional design developed by Andrew S. Gibbons.[1] This theory can be used to design individual and group instruction for all kinds of learning in any type of learning environment. In addition, this theory may be used… …   Wikipedia

  • Model United States Senate — (MUSS) is a student event intended to simulate the legislative process of the United States Senate. Various educational bodies organize MUSS events. Contents 1 DoDDS Europe MUSS 2 Floyd M. Riddick Model United States Senate at Stetson University… …   Wikipedia

  • Event Correlation — is a technique for making sense of a large number of events and pinpointing the few events that are really important in that mass of information. It has been notably used in Telecommunications and Industrial Process Control since the 1970s, in… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”