Article View: borland.public.jbuilder.java.swing
Article #1184Re: the red component mistery
From: Paul Furbacher
Date: Fri, 30 Jan 2004 15:31
Date: Fri, 30 Jan 2004 15:31
52 lines
2656 bytes
2656 bytes
Sven Goetgeluck wrote:
>>2) When the component extends an abstract class. The solution is to
>> declare a "proxy" concrete class for the designer.
>
>
> so i cannot do it the way i do it extends from jdialog ,
> in jb 3 is worked perfect
JBuilder 3 was based on a hybrid of Java and Delphi.
I don't know whether the Designer was a Delphi
component, but to make comparisons between the
two products isn't very meaningful.
> what is ment by a "declare proxy concrete class"
The release_notes.html file, which I mentioned earlier,
explain this. Please do read this file. It's found
in the root directory of your JBuilder installation:
e.g.,
d:/JBuilderX/release_notes.html
Click on the link to "Designer" in the Table
of Contents.
I still think that you should consider
aggregation instead of inheritance here.
I consider a dialog as a functional shell into
which one aggregates viewable components.
Maybe that's too limiting, but that's how
I look at it. And so far, that view has
served me well: it tends to make the viewable
components I write re-usable in more than just
a single dialog class hierarchy, and avoids
the red bean problem entirely.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
Technical Details
Message-ID:
<401a78eb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4019791d$1@newsgroups.borland.com> <401995d7$1@newsgroups.borland.com> <usmhx289b.fsf@ergo.no> <401a3d5e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,13c33929f7fcff3b X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-01-30 07:40:06 PST Date: Fri, 30 Jan 2004 10:31:55 -0500 From: Paul Furbacher <pfurbacher@mac.com> User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: the red component mistery References: <4019791d$1@newsgroups.borland.com> <401995d7$1@newsgroups.borland.com> <usmhx289b.fsf@ergo.no> <401a3d5e$1@newsgroups.borland.com> In-Reply-To: <401a3d5e$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.39.103.120 Message-ID: <401a78eb$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075476715 68.39.103.120 (30 Jan 2004 07:31:55 -0700) Lines: 52 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail