First alpha of my application

6 views
Skip to first unread message

Raúl Arabaolaza

unread,
Aug 6, 2010, 8:00:22 AM8/6/10
to sdls...@googlegroups.com
Hi,

It´s been a time, now that i´m on vacances i plan to give a lift to my sdl/swing roo addon development, so the first step is the sample application. It can be considered in alpha stage now, all basic functionality works but a lot of things can be polished but i think is safe to take a look now to see how it looks :)

This is a CRUD application using JPA+spring+sdlswing, it uses an emmbeded database (it´s trivial to change the database using roo) and maven, it may seem that there´re a lot of bilerplate code and it´s true, but the intent is that this applications will be automatically generated by Roo  and later modified if needed so this is not a problem in my opinion. 

There´re a lot of things to do yet, for example an appropiate exception management, a display interface to make the presenters usefull for testing, some junit test for the gui part, support for date and complex fields, a custom maven assembler to generate a distributable application, to polish the application class (i need to separate the initialization part from the set visible part to test the application properly)... but i think the main work is done and the rest are details and minor refactors to be added.

It´s attached here please feel free to comment :)

Regards, Raúl 


RooSDLSample.zip

Dan Leuck

unread,
Aug 6, 2010, 3:39:30 PM8/6/10
to SDL/Swing
Hi Raúl,

Interesting! I didn't know you were working with JPA+spring+SDL/Swing.

I look forward to checking it out over the weekend.

Best,
Dan
>  RooSDLSample.zip
> 121KViewDownload

Dan Leuck

unread,
Aug 8, 2010, 11:23:42 PM8/8/10
to SDL/Swing
This is an interesting app. I had to do some reading about Roo :-) I
like the way you integrated these libraries into an SDL/Swing app. I
learned a few things reading through your code.

You may find the formpane component useful for laying out your
editors. For example, you could write editPersona.sdl like so:

form ID="PersonaOperations" {
formpane {
"ID"; label ID="ID" text="pacooooo"
"Version"; label ID="version"
"First Name"; text ID="firstName"
"Last Name"; text ID="lastName"
""; hpane {
button "Save" do="save" ;
" "
button "Cancel" do="cancel"
}
}
}

Dan

On Aug 6, 2:00 am, Raúl Arabaolaza <raul.arabaol...@gmail.com> wrote:
>  RooSDLSample.zip
> 121KViewDownload

raul.ar...@gmail.com

unread,
Aug 9, 2010, 2:31:32 AM8/9/10
to sdls...@googlegroups.com
Thanks a lot for the advise Dan, i will use the formpane :)

The next version will have improved Presenters, for example it will use tablemodel events to refresh the entityList, using events may allow me to include a sort of pagination in the tables also, that´s the problem (and fun) of not being a swing expert you´re learning as you code.

Roo is by far the only code generator i use, it uses 100% pure java, is based in a familiar (to me at least) programming model (spring) and the generated code it´s absolutely editable, i really like it :)

Regards, Raúl

El , Dan Leuck <dle...@gmail.com> escribió:
Reply all
Reply to author
Forward
0 new messages