PDA

View Full Version : Simple table...



albi_t_b
4 Aug 2010, 12:36 AM
Hi folks
I have a very simple question: is there a way to build a table of data with out using the TableLayout?
I ask this because the component of the table layout must be panels, isn't it?
So in my application I have this table and when I change the data and I call the doLayout method it takes me a lot off time... A lot of times means more than 3 seconds...

Condor
4 Aug 2010, 12:41 AM
I would advise against using TableLayout. Instead use a VBoxLayout with nested HBoxLayouts.

The items of a TableLayout (any layout in fact) need to be BoxComponents (so it's not required that they are Panels).

Animal
4 Aug 2010, 12:59 AM
If it's just data that you want to lay out in a tabular manner, use a DataView

albi_t_b
5 Aug 2010, 2:28 AM
Thank you guys. I've tried bouth the ways..
First I used a VBoxLayout + HBoxLayouts with a lighter boxcomponent.. I've noticed a discrete speed up (20%)
Than i tried the DataView with a template that builds a group of divs. The speed up with this solution was really impressive..