GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 455 of 923    Print  
What is the advantage of the event-delegation model over the earlier eventinheritancemodel
The event-delegation model has two advantages over the event-inheritance model. First,it enables eventhandling to be handled by objects other than the ones that generate the events (or theircontainers). Thisallows a clean separation between a component's design and its use. The other advantageof the eventdelegationmodel is that it performs much better in applications where many events aregenerated. Thisperformance improvement is due to the fact that the event-delegation model does nothave to repeatedlyprocess unhandled events, as is the case of the event-inheritance model.


  
Total Answers and Comments: 0 Last Update: N/A   
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

The EventObject class and the EventListener interface support event processing. 
Latest Answer : Java.util.Event class ...

The java.awt.AWTEvent class is the highest-level class in the AWT event-classhierarchy. 

Most of the AWT-related events of the event-delegation model are defined in thejava.awt.event package. The AWTEvent class is defined in the java.awt package. 

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). 

An event-listener interface defines the methods that must be implemented by an eventhandler for a particular kind of event. An event adapter provides a default implementationof an event-listener interface. 

The java.util.EventObject class is the highest-level class in the event-delegation classhierarchy. 

The ActionEvent event is generated as the result of the clicking of a button. 

A component can handle its own events by implementing the required event-listenerinterface and adding itself as its own event listener. 

Java uses layout managers to lay out components in a consistent manner across allwindowing platforms. Since Java's layout managers aren't tied to absolute sizing andpositioning, they are able 

What is the difference between the JDK 1.02 event model and the event-delegationmodel introduced with JDK 1.1
The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model,components are required to handle their own events. If they do not handle a particularevent, the event is inherited 


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

How to Best Use Business Intelligence to Your Advantage

How to Best Use Business Intelligence to Your Advantage It is no big secret that today s businesses rely heavily on data and the information it delivers about their companies Whether it is for the purpose of customer acquisition improving operational performance or understanding competitors all of t
 

Taking Advantage of Standard Internet Protocols

Taking Advantage of Standard Internet Protocols As mentioned Oracle XML DB provides native support for standard internet protocols such as S WebDAV and Continuing with the preceding sample you might for example upload another employee XML document into the XML repository with one of the above prot
 

NLP Well Formed Outcome Model

NLP Well Formed Outcome Model Introduction In modern days goal setting has become important for achieving success The concept of SMART goals is developed where SMART stands for specific measurable attainable and assignable realistic and rewarding time able and tangible In spite of the importance giv
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

SCOR Model Process

SCOR Model Process The Supply Chain Operations Reference Model commonly known as SCOR is a diagnostic tool for the Supply Chain Management It lets the users know the various processes involved in a business and the important things that lead to customer satisfaction The Supply Chain Operations refer
 

SCOR Model

SCOR Model The SCOR Model also referred to as the Supply Chain Operations Reference model is a type of tutorial used to improvise your knowledge and usage of the Supply Chain Management system It is more of a management tool The Supply Chain Management Council has designed the SCOR Model in collabor
 

What is OSI Model

The OSI model, which is shorthand for Open Systems Interconnection Basic Reference Model, is an abstract computer network protocol design divided into seven layers, developed in 1977 by the American National Standards Institute (ANSI) working group on Distributed Systems (DISY) as part of the OSI in
 

What is Common Data Model

This data model represents events, entities and objects in the real world that are of interest to the company. It is subject oriented and includes all aspects of the real world, primarily activities pertaining to the business. To use lay terms, a data model can be considered a road map to get one em
 

What is Data Model

Data Model is a logical map that represents the inherent properties of the data independent of software, hardware, or machine performance considerations. The model shows data elements grouped into records, as well as the association around those records. Since the data model is the basis for data
 

Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape