top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between the event model and the event-delegation model?

+1 vote
349 views
What is the difference between the event model and the event-delegation model?
posted Dec 6, 2014 by Deepan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+3 votes
 
Best answer

Difference between event model and event-delegation are following:
1. The event-delegation model eliminates the processing required to support in the handling of unhandled events.
2. Event delegation model allow components to handle their own events. When components are unable to handle a particular event, then event is inherited by the component container.
3. In the event-delegation model, specific objects are designated as event handlers for GUI components.
4. These objects implement event-listener interfaces.
5. The JDK 1.02 event model uses an event inheritance

answer Dec 8, 2014 by Karthick.c
...