Re: mapping swing widgets directly to beans properties

Gerald Bauer <[email protected]> Fri, 21 Nov 2003 09:25:27 -0800 (PST)
Newsgroups gmane.comp.java.luxor-xul.user
Message-ID <[email protected]>
Hi Denis,

> Getting fed up with transfering data to and from
> XulInputs and beans model, I have written a few
> widgets that can be linked directly to beans
> property.

  Great. Let's get it into the main trunk.

> I think luxor could benefit greatly from this since
> it
> greatly reduce the amount of code needed in order to
> write db oriented apps. I'd like to have some feed
> back from all of you (sorry, it is only swing
> based...
> no SWT, but shouldn't be too hard to be ported)

  Don't worry about the SWT part. Let's try it out in
Swing first.
 
> The widgets I have yet implemented are : 
> - date widget, 
> - text field widget (that automatically recognized
> if
> the bean property is numeric or string and act
> accordingly), 
> - combo field (not demoed in the sample though).
> 
> You'll find the sample at this url :
> http://denis.cardon.free.fr/sampletest.tar.gz
> Sorry, no build.xml, but some eclipse metadata
> though.
> Before start up, be sure to modify the path to
> chrome
> file in the com.tranquilit.planning.main.TestMain
> class. (it is at the top of the file).
> 
> I hope this could be integrated in some way in the
> Luxor trunk because I think it could simplify
> greatly
> developpement. Please give me your feedback!

   Sure. I'm all for it. Let's get it into the main
trunk. Let me know what you need to check it into the
CVS repository.

  Denis, you're also more than welcome to take over as
lead for the Swing branch. You might wonna coordinate
your work with Anakrewn Meidis who has some external
CSS stylesheet support and tag reference support and
other goodies in the pipeline.

  I will concentrate on moving the SWT (Standard
Widget Toolkit) branch forward. For now don't worry
about two different code-bases. Let's try out
different approaches and see what works. Later we can
"steal" the best ideas from each other and get the two
branches in sync.

  - Gerald


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/