PDA

View Full Version : Layout question



hiinsu
25 Jun 2010, 9:00 AM
Hi,

I'd like to know which is a better way of putting layouts.

Currently, I have classes extend to containers directly.

For instance,

public Sample extends EntryPoint{

onModuleLoad .....{

rootPanel.get().add(new Page1());
}

}

public Page1 extends TabPanel{

onRender..{
add(new TabItemPage1());
// etc
}

}

but then I thought I could have all pages extends to layout containers
and create componets and add to layout container
and have parent page to add that layout container.

I notice it adds extra layout containers but it seems make pages to have similar structure..
which I do kinda like.

which is a preferred way of using layouts or layout container?

sven
25 Jun 2010, 9:09 AM
I notice it adds extra layout containers but it seems make pages to have similar structure..
which I do kinda like. Also you may like it, dont do it. It will make your page slow.

hiinsu
25 Jun 2010, 9:12 AM
Good point. Thanks
I overlooked that aspect..

sven
25 Jun 2010, 9:14 AM
The best application is that application, that only contains what you need and dont adds stuff just because you like it.