Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

advantage of the event delegation model over event-inherit

Thu Nov 06, 2008 10:39 pm

What is the advantage of the event-delegation model over the earlier event-inheritance model?



Re: advantage of the event delegation model over event-inherit

Thu Nov 06, 2008 10:40 pm

The event-delegation model has two advantages over the event-inheritance model. First, it enables event handling to be handled by objects other than the ones that generate the events (or their containers). This allows a clean separation between a component's design and its use. The other advantage of the event-delegation model is that it performs much better in applications where many events are generated. This performance improvement is due to the fact that the event-delegation model does not have to repeatedly process unhandled events, as is the case of the event-inheritance
model.

Post a reply
  Related Posts  to : advantage of the event delegation model over event-inherit
 relationship an event-listener interface & event handler     -  
 What is Event Handling?     -  
 AWT event hierarchy     -  
 ComponentListener event handling     -  
 Event Handling Notes     -  
 Thread of Event Dispatcher     -  
 explain event handling in java     -  
 Container Event handling with ContainerListener     -  
 event results from the clicking of a button     -  
 Handle Key event-keyboard-Get typed Character and its code     -