The FormLayout has been designed as a powerful layout manager that focuses on
layout. All tasks that are not directly related to computing and setting component
bounds have been kept out of the FormLayout. This way the FormLayout API
remains simple, however additional layers and helper classes can add features
and convenience behavior.
The Forms builder layer is intended to map different build styles to the basic
layout capabilities as provided by the FormLayout. This way you can map high-
level build steps to the basic grid operations. The predefined builders have been
prepared to map the component orientation to a concrete layout. So you can
describe a build procedure and map it to left-to-right, right-to-left, and even top-
I've recently fixed some bugs in the core builders and DefaultComponentFactory
that are related to right-to-left building. In addition I've added an example to the
Forms tutorial that demonstrates different building orientations. This is included
since the 1.0.3 preview.
The predefined builders don't reverse the column specification sequence if the
component orientation changes. Although this could be done by a builder, I
consider adding the following abstract column orientations: 'leading', 'trailing',
or 'front', 'back'. Likely I'll add such a featue in an API extending release 1.1.
In the meantime, I encourage you to write a custom builder that maps an array
of column specifications from left-to-right to right-to-left. The same can then be
used to map an encoded column specification.