- Event handler
In computer programming, an event handler is an asynchronous callback subroutine that handles inputs received in a program. Each "event" is a piece of application-level information from the underlying
framework , typically theGUI toolkit . GUI events include key presses, mouse movement, action selections, andtimer s expiring. On a lower level, events can represent availability of new data for reading a file or network stream. Event handlers are a central concept inevent-driven programming .The events are created by the framework based on interpreting lower-level inputs, which may be lower-level events themselves. For example, mouse movements and clicks are interpreted as menu selections. The events initially originate from actions on the operating system level, such as
interrupts generated by hardware devices, software interrupt instructions, or state changes in polling. On this level,interrupt handler s andsignal handler s correspond to event handlers.Created events are first processed by an "event dispatcher" within the framework. It typically manages the associations between events and event handlers, and may queue event handlers or events for later processing. Event dispatchers may call event handlers directly, or wait for events to be dequeued with information about the handler to be executed.
ee also
*
Callback (computer science)
*Signal handler
*Interrupt handler
*Event-driven programming
*Observer pattern (e.g. Event listener)
*DOM Events
*Virtual synchrony External links
* [http://hikwww2.fzk.de/hik/orga/verdi/rs/Dokumentation/Cpp/Cpp/ioc/tasks/t90us014.htm Write an Event Handler]
* [http://atddoc.cern.ch/Atlas/Notes/061/Note061-1.html A High Level Design of the Sub-Farm Event Handler]
* [http://www.w3.org/TR/xml-events/Overview.html#section-eventhandlers An Events Syntax for XML]
*Javadoc:SE-guide|plugin/dom/org/w3c/dom/events/Event.html|Java DOM Interface EventJavadoc documentation
*Javadoc:SE|package=javax.swing.event|javax/swing/eventJava package Javadoc API documentation
*Javadoc:SE|package=java.awt.event|java/awt/event Java package Javadoc API documentation
* [http://www.jini.org/wiki/Jini_Distributed_Events_Specification#Distributed_Events_and_Notifications Distributed Events and Notifications]
* [http://www.quirksmode.org/js/events_order.html Event order]
* [http://developer.apple.com/internet/webcontent/eventmodels.html Supporting Three Event Models at Once]
*Article " [http://doc.trolltech.com/qq/qq11-events.html Another Look at Events] " byJasmin Blanchette
*Article " [http://w3future.com/html/stories/callbacks.xml Event Handlers and Callback Functions] " bySjoerd Visscher
Wikimedia Foundation. 2010.