TablePane facilitates this behavior. However, I think we need to add
an inner component class to TablePane to support the empty space (I
ran into the need for this the other day myself). Because of the way
row contents are defined in WTK (and HTML, for that matter), you
always need to define a component for a cell, even when you don't want
anything in that cell (in HTML, it amounts to creating an empty <td>
tag). We don't currently provide that, so you have to use a Label with
no text, or something similar. We should include a TablePane.EmptyCell
class that just takes up the empty space.
However, we could consider adding a SpringPane class to handle this
case - maybe TablePane is too big a hammer for this particular job.
Thoughts?
On Aug 6, 2009, at 6:17 AM, Niclas Hedhman wrote:
Gang,
When laying out many forms, one needs to 'push' components in vertical
or horizontal directions. They are supposed to 'fill all possible
space'. I don't think that this is available in Pivot, and I think it
would be reasonable to have it.
Cheers
--
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java
I live here; http://tinyurl.com/2qq9er
I work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug