🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to implement a JdbNavComboBox

#12572
From: Jay Wagner
Date: Wed, 09 Dec 1998 00:00
54 lines
2256 bytes
Thanks for the help.  I have a question though.  I am not even get the
drop down list to show up.  I am trying to get a list from one
QueryDataSet to be linked to another QueryDataSet.  How did you
accomplish that?

Thanks again,

Jay Wagner


Ramanan Varadarajan wrote:

> Hi,
> I also struggled with JdbNavComboBox for a while...
> and found out this..
> the JdbNavComboBox  fires only the events that are
> applicable to QueryDataSet it is naviagating with...
>
> for instance
> if  you have queryDataSet1 attached to jdbNavComboBox1 then
> whenever u select an item in the ComboBox, it is equivalent to
> navigating to that element in the queryDataSet1..
> if u add a listener to Navigation event of the queryDataSet1  then
> u can capture the event occurence
> Hope this is clear... Feel free to ask me if not clear
>
> Thanks
> Ramanan
>
>
> code example:
>
>   JdbNavComboBox jdbNavCboLname = new JdbNavComboBox();
>
>     jdbNavCboLname.setDataSet(queryDataSetEmp);
>
>
>    queryDataSetEmp.addMasterNavigateListener(new
> borland.jbcl.dataset.MasterNavigateListener() {
>       public void masterNavigating(MasterNavigateEvent e) {
>       }
>       public void masterNavigated(MasterNavigateEvent e) {
>         queryDataSetEmp_masterNavigated(e);
>       }
>     });
>
>   void queryDataSetEmp_masterNavigated(MasterNavigateEvent e) {
>     System.out.println("jdbNavCboLname itemState changed");
>     if(jdbNavDeptName.getSelectedItem()!=null) {
>      System.out.println("selected "
> +jdbNavCboLname.getSelectedItem().toString());
>      System.out.println("jdbNavCboLname itemState changed");
>     }}
>
Technical Details
Message-ID: <366E7D8D.FAF3FE88@gte.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36681B0B.C42BFB37@gte.net> <366D559D.3675C352@lancomp.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2fdf92b46fdaae02
X-Google-Attributes: gid111d45,public
From: Jay Wagner <jwagner1@gte.net>
Subject: Re: How to implement a JdbNavComboBox
Date: 1998/12/09
Message-ID: <366E7D8D.FAF3FE88@gte.net>
X-Deja-AN: 420425978
Content-Transfer-Encoding: 7bit
References: <36681B0B.C42BFB37@gte.net> <366D559D.3675C352@lancomp.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing