Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


samar
Java event-listener
1 Answer(s)      3 years and 6 months ago
Posted in : Java Interview Questions


What is the relationship between an event-listener interface and an event-adapter class?

Advertisement
View Answers

October 27, 2010 at 4:09 PM


Hi,

Here is the answer.

An event-listener interface allows describing the methods which must be implemented by one of the event handler for a specific event.

An event-adapter allows default implementations of an event-listener interface of a specific event.

When you declare to implement an event listener, then you should write the definitions of all the methods that have been declared in the interface. This causes inconvenience to the programmers. They need to implement the methods that would never be used. One way to do away with this inconvenience is to use adapter classes. An event adapter class has empty implementations by default.

Thanks.



Related Tutorials/Questions & Answers:
Java event-listener
Java event-listener  What is the relationship between an event-listener interface and an event-adapter class
Event listener in JavaScript with example
Event listener in JavaScript with example  What is event listener in JavaScript? Can anyone please post an example of Event listener?? Thanks in Advance
Advertisements
Java - Event Listeners Example in Java Applet
Java - Event Listeners Example in Java Applet       Introduction The event listener is the feature of java that handles the several events for the several
Value Change Event Listener
Value Change Event Listener   ... to use only one listener for the component but second way permits you to include... is called when the ValueChangeEvent action observed by this listener occurs. So
Action Event Listener
Action Event Listener   ... listener for the component but second way permits you to include more than one event listeners. 1. Using "actionListener" attribute of the component
Flex Add Event Listener example
in the example we have two event listener Handler and Handler1 respectively... in flex components. Here in the example only mouse event is added... on it. Event listeners are the methods or functions in which events are added
java programs
java programs  1.define frame? 2.what is the need for java programming? 3.list the events of classes? 4.define Event handling? 5.List event listener interface
Flex Remove Event Listener example
from the flex components. Here mouse click event are removed by the method. In the example method doesn't able to remove the event from the button with id b3 because on this flex control, the associated event is built
core java - Java Beginners
are Serializable, Clonable, SingleThreadModel, Event listener. Marker Interfaces...; Hi friend, Marker Interface : In java language programming...://www.roseindia.net/java/master-java/interface.shtml Thanks
java
java  what is marker interface?   Interfaces with no methods is known as marker interfaces. Marker interfaces are Serializable, Clonable, SingleThreadModel, Event listener. Marker Interfaces are implemented
Core Java Interview Question, Interview Question
is the relationship between an event-listener interface and an event-adapter class? Answer: An event-listener interface defines the methods that must... provides a default implementation of an event-listener interface. Question: What
java - Java Interview Questions
interfaces are Serializable, Clonable, SingleThreadModel, Event listener. Marker... to its implementation class object   Hi Friend, In java language...://www.roseindia.net/java/master-java/interface.shtml Thanks
Marker Interface - Java Interview Questions
are Serializable, Clonable, SingleThreadModel, Event listener. Marker Interfaces....  Hi friend, Marker interface : In java language programming... more information on Marker interface visit to : http://www.roseindia.net/java
Flex adding single event on varied components Example
Flex single event on varied components   ... event MouseEvent.MOUSE_DOWN, are created on two flex check boxes controls... the pop-up windows. So with this example a clear idea for adding single event
Return Value From Event - Java Beginners
a value after an event has occurred and the value is determined by the event or listener. eg: public int mymethod() { static int value=0; KeyAdapter... is that mymethod() returns a value before the listener can change value. i want it to wait
Interface in Java
are Serializable, Clonable, SingleThreadModel, Event listener. Marker Interfaces... Interface in Java       In this section we will learn about Interface and Marker Interfaces in Java
difference between marker and tag interface - Java Interview Questions
, SingleThreadModel, Event listener. Marker Interfaces are implemented by the classes...); } Marker Interface In java language programming, interfaces with no methods... example. For more information visit to : http://www.roseindia.net/java
Event Handling In Java
Event Handling In Java In this section you will learn about how to handle... ) generates an event. This event is handled by the listener. Event listener listens.... In Java event handling may comprised the following four classes : Event Sources
Marker Interface,Java Marker Interface
are Serializable, Clonable, SingleThreadModel, Event listener. Marker Interfaces... Interface in Java       In this section we will learn about Interface and Marker Interfaces in Java
Core Java Interview Question, Interview Question
are designated as event handlers for GUI components. These objects implement event-listener... Core Java Interview Question Page 20  ... by the Java run-time system? Answer: The Java runtime system generates Runtime
java
java  diff bt core java and java
java
java  what is java
JAVA
JAVA  how the name came for java language as "JAVA
java
java   why iterator in java if we for loop
java
java  explain technologies are used in java now days and structure java
java
java  different between java & core java
Java
Java   Whether Java is pure object oriented Language
java
java  is java open source
java
java  what is java reflection
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
java
java   What is ?static? keyword
java
java  RARP implementation using java socket
java
java  sample code for RARP using java
java
java  Does java allows multiline comments
Java
Java  how to do java in command prompt
java
java  give a simple example for inheritance in java
java
java  give a simple example for inheritance in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  Write a java code to print "ABABBABCABABBA
java
java  write a program in java to acess the email
java
java  send me java interview questions
java
java  how use java method
java
java  what are JAVA applications development tools
Java
Java   Whether Java is Programming Language or it is SOftware
java
java  is java purely object oriented language
java
java  why multiple inheritance is not possible in java
Advertisements
 

 

 

DMCA.com