πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jdbNavComboBox and eventhandling?

#9153
From: Paul Furbacher [TeamB]
Date: Thu, 18 May 2000 00:00
48 lines
2810 bytes
"RenοΏ½ Thomsen" wrote:
 
> the solution you provided works as far as adding the listener goes...
> but when resetting the jdbnavcbpx with e.g.  removeAllitems, the error
> occurs.
Actually, I was wrong in suggesting that the "removeAllItems()" method
should work, since the underlying model is a "read-only" or non-mutable one.

> i know the component is designed for dataaware functionality, but if an
> event is nonworking
> maybe it should be grayed out? the trick you gave worked but is causing
> other member functions not to work as desribed above.

There's a misunderstanding here.  The event is indeed working.  It's 
what you want to do with the event handling which is not working.  So,
what this means is that you have to rethink the use of this particular
component.  Since it won't do what you want to do given its use of a 
non-mutable list model, you must begin searching around for another
way to solve the problem.  


   What is the purpose of this control?  Does it navigate the dataset? 
   Or does it simply present a list of the unique items in the column 
   to which it is bound?

   Because you want to delete items (sometimes all of them) from the
   component's list model, it would appear that unless you are willing
   to delete rows in the bound dataset, you really aren't using it as
   a navigation control.  Is this correct?


> im a former c++ programmer and i LOVE the borland products. i just feel im
> wasting my time researching how to catch event there should be available by
> default OR grayed out.

There's no reason to disable the events since there are legitimate things
you could do as a listener.  However, removing items from the list is simply
not one of them.  

> sorry if i sound a little irritated, but my employer is pushing me all the
> time, and i cant push the code.

I had an idea that you were indeed panicking.  Hopefully we can push the
code a little if we can relax and better establish the design requirements
for this particular control.


Paul Furbacher (TeamB)
Technical Details
Message-ID: <39242251.BD56C652@home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8fgtpv$iot2@bornews.borland.com> <391C19C5.3396C61C@home.com> <8fooi3$3vn4@bornews.borland.com> <8frjep$2jk2@bornews.borland.com> <39218A91.C2AA5613@home.com> <8g0jhn$k8m2@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,e90c7079d92d94ee
X-Google-Attributes: gid111d45,public
From: "Paul Furbacher [TeamB]" <pnf@home.com>
Subject: Re: jdbNavComboBox and eventhandling?
Date: 2000/05/18
Message-ID: <39242251.BD56C652@home.com>
X-Deja-AN: 625054847
Content-Transfer-Encoding: 8bit
References: <8fgtpv$iot2@bornews.borland.com> <391C19C5.3396C61C@home.com> <8fooi3$3vn4@bornews.borland.com> <8frjep$2jk2@bornews.borland.com> <39218A91.C2AA5613@home.com> <8g0jhn$k8m2@bornews.borland.com>
X-Accept-Language: en,pdf
Content-Type: text/plain; charset=iso-8859-1
Organization: Reverse Alchemy, Inc.
Mime-Version: 1.0
Reply-To: pnf@home.com
Newsgroups: borland.public.jbuilder.java.swing