Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

listener

 
sandeep Talari
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
summary regarding "Listeners" . What are these Listeners in java . What is the main purpose these Listeners. What i have to understand blindly about listeners. Explain me in details
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A listener is a class which is notified when the event it is listening to occurs.
Find out more at the ServletsFaq.




Hope this helps .
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sandeep Talari:
summary regarding "Listeners" . What are these Listeners in java . What is the main purpose these Listeners. What i have to understand blindly about listeners. Explain me in details


This question is more like Java Beginner

and a googled it, you ll find hundreds of useful links !!
[ July 17, 2008: Message edited by: Bear Bibeault ]
 
Rahul Shilpakar
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Listeners are always ready to listen any event happen on its components and its changes.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50225
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like most things, there is something useful about it in the Java Tutorials.
 
Mandar Khire
Ranch Hand
Posts: 569
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In simple (few)words i try to answer of What are these Listeners in java? I read it in J2CR(Java 2 The Complete Reference)book.
First we should understand event:- An Event is an object that describes a state change in a source. & A Source is an object that generates an event.
A source must register listeners in order for the listeners to receive notifications about a specific type of event.
Here is the general form:-
public void add Type Listener(TypeListener el)
here Type is the name of event & el is La reference to the event listener.
The listener is an object that is notified when an event occurs.
I not write all things here but
try these link:-
{Listeners in Java}.
{Listeners in Java}.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic