[Advanced-java] basic event listener code
Pollard, Jim
Pollard at stats.com
Wed Mar 5 18:54:16 2003
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
---------------------- multipart/alternative attachment
it seems like you should just be using the java.util.Observer/Observable
that are provided with the JDK. that'd save you a lot of the work of
reinventing the wheel. plus there must be some decent tutorials out there
on how to use those.
-----Original Message-----
From: Viswanath Nandanavanam [mailto:nvishy127@yahoo.com]
Sent: Wednesday, March 05, 2003 10:04 AM
To: advanced-java@lists.xcf.berkeley.edu
Subject: [Advanced-java] basic event listener code
Hi Friends,
I need sample code in implementing event-listner model (non AWT).
The problem description is like this,
I have an interface declared EventListner (not AWT, just named so).
This has a method called tell().
There is a SubscriptionListener class which implements this interface. There
is another class SubscriptAcceptor that gets notified by the Subscription
Listener class.
The problem is I should write code which will send a notification from
SubscriptListener to SubscriptAcceptor. This is a synchronous
communication say can be implemented like an event listner model. If I can
get
some code outline of how to go abt that would do a world of good for me.
Thanks in advance
vishy
_____
Do you Yahoo!?
Yahoo! <http://rd.yahoo.com/finance/mailtagline/*http://taxes.yahoo.com/>
Tax Center - forms, calculators, tips, and more
---------------------- multipart/alternative attachment
An HTML attachment was scrubbed...
URL: /lists/advanced-java/attachments/20030305/481550c2/attachment.htm
---------------------- multipart/alternative attachment--