PDA

View Full Version : contentpanel with rowlayout



bdp11
30 May 2008, 11:38 AM
Hi,

Scenario is given below.

**************************************
ContentPanel parent1 = new CotentPanel();
parent1.setLayout(new RowLayout(Orientation.VERTICAL));

ContentPanel child1 = new ContentPanel();
child1.setLayout(new FitLayout());
child1.add("some widget");

ContentPanel child2 = new ContentPanel();
child2.setLayout(new FitLayout());
child2.add("some widget");

parent1.add(child1);
parent1.add(child2);

ContentPanel parent2 = new CotentPanel();
parent2.setLayout(new FitLayout());
parent2.add("some widget");

ContentPanel grand_parent = new CotentPanel();
grand_parent.setLayout(new RowLayout(Orientation.VERTICAL));
grand_parent.add(parent1);
grand_parent.add(parent2);

*******************************************************


can this work ?????

Thanks

gslender
30 May 2008, 2:10 PM
yes, but obviously depends on what you expected it to do... but otherwise the logic seems ok