Ok but now what can i do to create a new ColumListView or TabelView. Ralf 2012/1/11 Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> > Stephan Aßmus<superstippi@xxxxxx> wrote: > > Actually, in practice one usually wants a mix of weighted widths and > > fixed widths. And there are indeed use-cases where the height of table > > items would be variable, so the full functionality of the BGridLayout > > may be adequat to drive a BTableView. The use-cases I have in mind may > > not be the same where one would have thousands of items, so maybe the > > layout implementation should be exchangable to optimize for the fixed > > height case. > > Definitely. You must allow variable line heights, but if you do that, > layout is getting very expensive. Therefore, I would suggest that having a > fixed height is either the default (derived from the first item of the > list), or can be easily set which will cause a different and much more > efficient layout mechanism. > For example, in Swing, you can set a prototype cell (at least in a JList, > the other related classes do this differently, of course) from which the > fixed size is then taken. This is useful if the size of the cell depends on > its contents, and the first item might not really be a good candidate to > derive the size from. > > Bye, > Axel. > > >