🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

dbTextDatabinder

#10010
From: Zippy
Date: Fri, 10 Dec 1999 00:00
33 lines
2480 bytes
I have several issues with dbTextDataBinder class and its
implementation

First off I needed to save a styled text so using this class as a kind
of template on how to do things I was kind of surprised at the number
of interfaces it used. So i trimed back droping the dataChangeListener
interface and the access interface. Well surprisingly the navigation
interface never gets fired when the dataset is first loaded. Strictly
speaking it should should it not ? (Since it is navigating to the
first record). Anyways to work around this problem I implemented the
use of the accesslistener interface. (Since it gets fired when the
data is loaded.) Well that worked but then I tried moving to the next
record. BOOM null pointer exception... Nothing in my code was the
source, the exception pointed with in the dataset class. So i took a
shot in the dark and added the datachangelistener interface and then
the exception went away ... Hmmm why ?? shouldnt I have been
excpetioned out when I tried to make this class columnaware ?? (I can
see the use for the datachangelistener) Another question about this
listener why does this get fired when you navigate to a new record (it
fires three times the ids are 5,1,1) ??? It should be surpressed but
it isnt.  Looking back at the textDataBinder class it refreshes the
same text field 4 times every time you navigate to a new record.( And
yes this happens despite all the ignorechanges flags in the code.)
This is idiotic. To summarize then

NavigationListener does not fire an event when the dataset is first
loaded.
dataChangeListener fires 3 times when you navigate to a record.
dbTextDataBinder class refreshes each bound text control 4 times ever
time you navigate to a new record.

Is there something wrong here ?? Is borland responsible to make
upgrades to the swing library ??
Technical Details
Message-ID: <38525c1a.685505@news.pangea.ca>
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: 111d45,2a5a16bb5560d6a0,start
X-Google-Attributes: gid111d45,public
From: Zippy@Pangea.ca (Zippy)
Subject: dbTextDatabinder
Date: 1999/12/10
Message-ID: <38525c1a.685505@news.pangea.ca>
X-Deja-AN: 558827662
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@pangea.ca
X-Trace: pumpkin.pangea.ca 944792202 437 64.4.88.63 (10 Dec 1999 02:16:42 GMT)
Organization: Oats
Mime-Version: 1.0
Reply-To: Zippy@Pangea.ca
NNTP-Posting-Date: 10 Dec 1999 02:16:42 GMT
Newsgroups: borland.public.jbuilder.java.swing