A software routine that provides the processing for various events such as mouse movement, a mouse click, a keystroke or a spoken word. See event, event driven and event management system.
Download Computer Desktop Encyclopedia to your iPhone/iTouch
| Computer Desktop Encyclopedia: event handler |
A software routine that provides the processing for various events such as mouse movement, a mouse click, a keystroke or a spoken word. See event, event driven and event management system.
Download Computer Desktop Encyclopedia to your iPhone/iTouch
| 5min Related Video: event handler |
| Wikipedia: Event handler |
| It has been suggested that this article or section be merged with Event (computing). (Discuss) |
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 the GUI toolkit. GUI events include key presses, mouse movement, action selections, and timers 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 in event-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 handlers and signal handlers 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.
javax.swing.event Java package Javadoc API documentationjava.awt.event Java package Javadoc API documentationThis entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
| event (technology) | |
| event driven (technology) | |
| Event cascade |
Copyrights:
![]() | Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher. © 1981-2009 Computer Language Company Inc. All rights reserved. Read more | |
![]() | Wikipedia. This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Event handler". Read more |
Mentioned in