🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jdbNavComboBox and eventhandling?

#8993
From: Ren� Thomsen
Date: Mon, 29 May 2000 00:00
69 lines
3495 bytes
I want to use the user to type in a letter and when he has typed the first
letter, i search in a field.
When he  types a new letter a new search is done, removing all other
entitites.
Have tried to set the components dataset to null to remove items, nowork,
aswell as refreshing the query (with new sql) bound to the component, dosent
work either.
 i could use a regular combobox and fill it with strings, however this takes
forever(strange).

please Advice
and thanks for your help so far..

"Paul Furbacher [TeamB]" <pnf@home.com> wrote in message
news:39242251.BD56C652@home.com...
> "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: <8gt6ta$geo2@bornews.borland.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> <39242251.BD56C652@home.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,e90c7079d92d94ee
X-Google-Attributes: gid111d45,public
From: "Ren� Thomsen" <rtNOSPAM@bankinvest.dk>
Subject: Re: jdbNavComboBox and eventhandling?
Date: 2000/05/29
Message-ID: <8gt6ta$geo2@bornews.borland.com>
X-Deja-AN: 628512667
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> <39242251.BD56C652@home.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing