Re: ANN: clj-forms - a wrapper DSL for JGoodies Forms

2009-06-30 Thread Nicolas Oury
On Tue, 2009-06-30 at 13:10 +0200, Meikel Brandmeyer wrote: > I'm not sure agents are the right idea here. The forms > are used in dialogs. So when the dialog closes I need > the result immediately. So updating the IRef needs to > be synchronous. agents cannot assure that. > Then it could be gre

Re: ANN: clj-forms - a wrapper DSL for JGoodies Forms

2009-06-30 Thread Meikel Brandmeyer
Hi, Am 30.06.2009 um 11:57 schrieb Nicolas Oury: It seems a very nice idea. I would suggest the use of agents, for the states, rather than atom. Especially, the possibility to have watchers seems good. I'm not sure agents are the right idea here. The forms are used in dialogs. So when the dia

Re: ANN: clj-forms - a wrapper DSL for JGoodies Forms

2009-06-30 Thread Meikel Brandmeyer
Hi, Am 30.06.2009 um 11:32 schrieb Laurent PETIT: 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". Ah! I see th

Re: ANN: clj-forms - a wrapper DSL for JGoodies Forms

2009-06-30 Thread Nicolas Oury
Hi Meikel, > (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 :const

Re: ANN: clj-forms - a wrapper DSL for JGoodies Forms

2009-06-30 Thread Laurent PETIT
Hi, 2009/6/30 Meikel Brandmeyer : > 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

Re: ANN: clj-forms - a wrapper DSL for JGoodies Forms

2009-06-30 Thread Meikel Brandmeyer
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 co

Re: ANN: clj-forms - a wrapper DSL for JGoodies Forms

2009-06-30 Thread Laurent PETIT
Hi Meikel, 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

ANN: clj-forms - a wrapper DSL for JGoodies Forms

2009-06-30 Thread Meikel Brandmeyer
Dear Clojurians, I herewith announce a new library: clj-forms. It provides a small embedded DSL to allow easy creation of forms by providing a sequence of maps giving the necessary information. The boilerplate is hidden in the Forms driver. Here you can find an example: http://kotka.de/projec