7 Aug 2005 08:25
Re: SwiXML and FormLayout
<Forum <at> carlsbadcubes.com>
2005-08-07 06:25:54 GMT
2005-08-07 06:25:54 GMT
<Forum <at> carlsbadcubes.com> writes:
>
> Hello
>
> First of all .. thanks for swixml ..
>
> I very much like the swixml-forms "hack".
> I am trying to rewrite it so it can be plugged in into swixml but I am
> afraid this will requires some changes to swixml. The current aproach I have
chosen is to create new classes
> for the LayoutConverter to support the the fromlayout and the
ConstraintsConverter to support
> formlayout constraints and then registering them to swixml
>
> my now working xml looks like this
> <panel layout="formlayout('pref,2dlu,pref,min','pref,2dlu,pref')">
> <label labelfor="name" text="Date format" constraints="xy(1,1)"/>
> ..shorted...
> </panel>
>
> I have managed to overide the LayoutConverter by registering it a as
LayoutManager converter.
> ConverterLibrary.getInstance().register(LayoutManager.class,new
FormLayoutConverter());
>
> but for the ConstraintsConverter I can not do the same since that class is not
a real converter
> (doen't implement the interface and is not registered in the converters).
(Continue reading)
RSS Feed