• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

listener

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Listeners are always ready to listen any event happen on its components and its changes.
 
Marshal
Posts: 80874
506
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Like most things, there is something useful about it in the Java Tutorials.
 
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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}.
 
reply
    Bookmark Topic Watch Topic
  • New Topic