🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8431

Re: Multiple Event Listeners For One event

#8431
From: Ali Demir
Date: Thu, 17 Aug 2000 00:00
32 lines
1669 bytes
Oh! I saw a consume thing there but I thought it was protected! :) I will
have a look at it.
Thanks so much :)
ali

"Paul Furbacher [TeamB]" <pnf@home.com> wrote in message
news:399C88B7.7CBE20F1@home.com...
> Ali Demir wrote:
> >
> > Thank you very much Dave. That's a good idea. How about if the event is
> > fired in someone else's code? What do people do in that case most of the
> > time? AWT events etc? Is there a common practice?
>
> > > > I have Multiple Event Listeners For One event. If one of the
listeners
> > > > handles the event, I would like other listeners to skip this event.
> > > >
> > > > Is there a recommended way of implementing a design pattern so that
this
> > > > kind of problem is nicely handled?
> > > >
> > > > For example it would be nice if the event class had a property which
I
> > > could
> > > > set to 'handled'...
>
> What about consuming the event in a manner similar to
> mouse and key events?  The code is there to study and
> ponder.
>
>
> Paul Furbacher (TeamB)
Technical Details
Message-ID: <399ca63f$1_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <399a025d$1_2@dnews> <399a8d44_1@dnews> <399b75b0$1_1@dnews> <399C88B7.7CBE20F1@home.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3998603c7ea30180
X-Google-Attributes: gid111d45,public
From: "Ali Demir" <demir.4@osu.edu>
Subject: Re: Multiple Event Listeners For One event
Date: 2000/08/17
Message-ID: <399ca63f$1_2@dnews>
X-Deja-AN: 659585147
References: <399a025d$1_2@dnews> <399a8d44_1@dnews> <399b75b0$1_1@dnews> <399C88B7.7CBE20F1@home.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Trace: 17 Aug 2000 19:58:07 -0800, 192.147.88.2
X-MSMail-Priority: Normal
Reply-To: "Ali Demir" <demir.4@osu.edu>
Newsgroups: borland.public.jbuilder.java.swing