posted 17 years ago
Well, during custom Listener and Event creation, I cannot figure out followed :
I have an Listener interface- ok
I have an Event class - ok
I have a class which implements methods for registration/removing Listener and
notification method - ok.
here is sample (taken from developing Java Beans book) :
An Event class:
A listener interface:
An event source class:
The class wich use source event object:
What bothers me is: What indicate (tell event source object) that a certain event has occurred, and what (how) call the notification method???
We add a listener to Temperature object, but what is that what trigger notification method to be invoked???
[ November 21, 2008: Message edited by: Bear Bibeault ]