🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18925

JCTableComponent: Listening for Events Generated by Table Components...

#18925
From: Pam Teixeira
Date: Tue, 07 Apr 1998 00:00
36 lines
1888 bytes
I have a JCTableComponent to which I've added Choice components
and TextField components to two of its columns.  My problem is
that I've set up listeners in the table to capture events generated by 
those components, but the routines never get called.  However, they 
*do* get called for cells *without* components in them.

The only listener that does get called is CreateComponent().  The
ValidateCellBegin/End() listeners don't get called.  What I'd like to
be able to do is validate the component's value before the user leaves 
the cell.

Here's what I have so far:

in jbInit():
    theTable.setComponent(JCTblEnum.ALLCELLS, 0, new TextField());
    theTable.setComponent(JCTblEnum.ALLCELLS, 1, new Choice());
    ...
    theTable.setValidatePolicy(JCTblEnum.VALIDATE_ALWAYS);
    IncomingTable.addValidateCellListener(new Frame1_theTable_validateCellAdapter(this));
    -------

    void theTable_validateCellBegin(JCValidateCellEvent event) {
    ...
    }

   void theTable_validateCellEnd(JCValidateCellEvent e) {
   ...
   }

Any pointers and/or code samples you can provide would be greatly 
appreciated!

Thanks in advance,
Pam.
pculbreth at lucent dot com
Technical Details
Message-ID: <01bd6239$ba732c50$24b4b487@disney>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4bc9,32e62364e4edb470,start
X-Google-Attributes: gidf4bc9,public
X-Google-Thread: f5619,32e62364e4edb470,start
X-Google-Attributes: gidf5619,public
X-Google-Thread: f74b3,32e62364e4edb470,start
X-Google-Attributes: gidf74b3,public
From: "Pam Teixeira" <i@hate.spam.com>
Subject: JCTableComponent: Listening for Events Generated by Table Components...
Date: 1998/04/07
Message-ID: <01bd6239$ba732c50$24b4b487@disney>
X-Deja-AN: 341727229
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.jbcl,borland.public.jbuilder.thirdpartytools