Hi,

2009/6/30 Meikel Brandmeyer <m...@kotka.de>:
> Hi Laurent,
>
> Am 30.06.2009 um 10:56 schrieb Laurent PETIT:
>
>> the name of the library is very general, while when reading its
>> description it seems that it handles just a particular kind of
>> implementation forms (JGoodies). I can also see that the use by a user
>> requires the explicit usage of swing constructors.
>>
>> So I was wondering whether you could make the name reflect the fact
>> that it is more specific (to swing or jgoodies) ? Because it could be
>> misleading.
>>
>> In fact, I thought at first (by just reading the name) that it was an
>> abstraction over the creation of forms, be they swing or swt ?
>>
>> Just a suggestion, of course :-)
>
> At the moment, it's really only a very small wrapper around
> the JGoodies library to take away the boilerplate. It doesn't
> really deserve an "own" name.
>
> But on the other hand it might be also a good idea to expand
> it's functionality to also construct the swing components needed.
>
> (make-panel
>  [{:label "Flogiston Pressure" :constraints "1, 1"}
>   {:editor Integer :initial 0 :min 0 :max 5 :atom flogiston-pressure
> :constraints "2, 1"}
>   {:label "Security Override" :constraints "1, 3"}
>   {:editor Boolean :initial false :atom sec-override :constraints "2, 3"}]
>  :layout my-configured-layout)

Yes, what I have in mind is that, in some point in time, parts of
clojuredev (ouch, still not decided on a new name :) will be
implemented in clojure, and so I'll have to somewhat create the same
kind of dsl for swt based "forms".

So I was challenging your dsl to see how it could make a good basis
for a cross-way to declare forms (swing based or swt based).
The idea of getting rid of explicit Swing constructors seems good to
me. The only part that remains somewhat very tied to swing in the spec
may be the :constraints specification.

Have you tried the MigLaout layout manager ? (
http://www.miglayout.com/ ). It enables one to specify layout
constraints without strong adherance to either swing or swt or a
particular swing/swt layout manager.


>
> The first would create some kind of Spin control, the second
> a check box. Changing their state would then modify the supplied
> atoms. One could also think of validators, etc...
>
> Was that, what you had in mind? Then a name like clj-swing-forms,
> would maybe justifiable. Or maybe Jazz, Blues, ... ?

I'm pretty bad at finding names, so I won't give you any advice ... :-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to